NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Ubuntu and Dell i9300 media buttons...
New Posts  All Forums:Forum Nav:

Ubuntu and Dell i9300 media buttons...

post #1 of 6
Thread Starter 
I just installed Ubuntu 5.04 on my i9300. I really hate not being able to use the 'lovely' media buttons on the front of the laptop. Is there anyway to get them working in Linux?
post #2 of 6
Quote:
Originally Posted by Apolethe
I just installed Ubuntu 5.04 on my i9300. I really hate not being able to use the 'lovely' media buttons on the front of the laptop. Is there anyway to get them working in Linux?
easiest is to open up "Keyboard Shortcuts" from /Desktop/Preferences panel from gnome. Click on "Action" (ie Volume mute) and push the media mute button.

--
Shawn
post #3 of 6
Another way: If you're Kubuntu, you can just select from one of the 100+ multimedia keyboard preconfigurations. I just checked and I don't see the 9300 on the list, but I'm sure it would be compatble with the 8xxx series (which is on the list).

My cl56 is compatable with most of the notebooks on the list. (IE: I can select almost any of those notebooks and all my multimedia buttons will work automatically).
post #4 of 6
Quote:
Originally Posted by epb613
Another way: If you're Kubuntu, you can just select from one of the 100+ multimedia keyboard preconfigurations. I just checked and I don't see the 9300 on the list, but I'm sure it would be compatble with the 8xxx series (which is on the list).

My cl56 is compatable with most of the notebooks on the list. (IE: I can select almost any of those notebooks and all my multimedia buttons will work automatically).

works in regular ubuntu too.
post #5 of 6
Another way to configure the multimedia keys:
Make ~/.Xmodmap ( /home/name/.Xmodmap )
and add those lines:

keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 160 = XF86AudioMute
keycode 162 = XF86AudioPlay
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 164 = XF86AudioStop
post #6 of 6
Since I switch between gnome and fluxbox I use xbindkeys for keystroke launcher and xosd for on screen display. The nice side affect of this method is it syncs the adjustment of the "Master" "Headphone" and "Master Mono" (subwoofer). This is really important for me since I use headphones 3/4 of the time. The volume script I adapted and cleaned up from another person on the gentoo forums.

.Xmodmap
PHP Code:
keycode 160 = F19 keycode 174 = F20 keycode 176 = F21 keycode 162 = F22
.xbindkeys
PHP Code:
"volume mute" F19 "volume down" F20 "volume up" F21
volume located in my path executed with # volume mute|down|up
PHP Code:
#!/bin/bash font="--font=-xos4-terminus-bold-r-normal-*-20-200-72-72-*-100-*-*" color="--color=white" delay="--delay=1" position="--pos=bottom --align=center" percent=$(amixer get Master | grep "Front Left:" | cut -d " " -f 7 | tr -d '[%]') vol="osd_cat $font $color $position $delay --barmode=percentage --percentage=$percent" case "$1" in mute) amixer -q set 'PCM' toggle if amixer sget PCM | grep -q off then $vol --text=MUTE else $vol --text=UNMUTE fi ;; down) if amixer sget PCM | grep -q off then amixer -q set 'Master' 1- amixer -q set 'Master Mono' 1- amixer -q set 'Headphone' 1- $vol --text=MUTED else amixer -q set 'Master' 1- amixer -q set 'Master Mono' 1- amixer -q set 'Headphone' 1- $vol --text=VOLUME fi ;; up) if amixer sget PCM | grep -q off then amixer -q set 'Master' 1+ amixer -q set 'Master Mono' 1+ amixer -q set 'Headphone' 1+ $vol --text=MUTED else amixer -q set 'Master' 1+ amixer -q set 'Master Mono' 1+ amixer -q set 'Headphone' 1+ $vol --text=VOLUME fi ;; *) echo "usage: `basename $0` (mute|down|up)" esac exit 0
--
Shawn
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux & Other OS's
NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Ubuntu and Dell i9300 media buttons...