[tlinux-users:07369] Re: satellite buttons
Serhan Danis <[email protected]>
| Newsgroups | gmane.linux.hardware.toshiba |
|---|---|
| Message-ID | <[email protected]> |
hi,
firstly i have a toshiba satellite L10-205.
i didn't work hard for it but i managed to get some of these buttons working at least for X. i use xbindkeys program, which i add to the autostart of kde of the specific user.
the keys i restored are the ones at the right of the power button (previous, next, play/pause, stop), mute (fn+esc), volume up (fn+up) and volume down (fn+down)
here is the .xbindkeysrc config file i arranged. as you see, i suppose that xmms and amixer are already installed.
.xbindkeysrc
---------------------------------------------------
# play/pause
"xmms -t"
c:162
# stop
"xmms -s"
c:164
# previous
"xmms -r"
c:144
# next
"xmms -f"
c:153
# mute
"togglevol"
c:160
#ses arttir (vol up)
"amixer -c 0 set 'Master',0 2%+"
c:176
#ses azalt (vol down)
"amixer -c 0 set 'Master',0 2%-"
c:174
#xmms goster (show main window): this one is just a shortcut
"xmms -m"
Control + Alt + c:25
---------------------------------------------------
the lines
c:<number>
uses the keycodes of the unattached keyboard keys as the number.
i also added a togglevol script to my system to enable the mute keycode:
/usr/bin/togglevol:
---------------------------------------------------
#!/bin/sh
if amixer -c 0 get 'Master',0 | grep '\[on\]'
then
amixer -c 0 set 'Master',0 mute
exit 0
fi
amixer -c 0 set 'Master',0 unmute
---------------------------------------------------
the program "xev" is utilizable to get the keycodes of the specific buttons or combinations.
don't forget to start the xbindkeys program at X start.
i wish to get this keyboard problem solved at a lower level degree,
any suggestions??
serhan
On Thu October 27 2005 01:34, C.G. wrote:
> The keyboard of my Satellite L10 laptop is also
> equipped with a few extra buttons, such as
> start/pause, stop, next track etc, like on a sound
> recorder.
>
> I just wonder if there is an i2c/smbus driver that can
> inform me whenever one of those buttons is pressed. It
> could be useful, after all.
>
> /proc/acpi/button doesn't contain anything, but I'm
> not sure that ACPI has been designed for that.
>
> Thank you for your possible answer.
>
>
>
>
>
> __________________________________
> Yahoo! FareChase: Search multiple travel sites in one click.
> http://farechase.yahoo.com