Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I get the hotkeys to work...?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jaydoc
n00b
n00b


Joined: 04 Jan 2009
Posts: 61
Location: Miami, FL

PostPosted: Sat Jan 31, 2009 5:54 am    Post subject: Can I get the hotkeys to work...? Reply with quote

Hi...

I am trying to get my hot keys to work, especially the Audio volume raise/lower wheel located in the front of my Acer 5920 laptop. I am using xev to map the key. On Arch linux which runs on this same laptop, I am able to get xev to give a specific keycode to the voulme wheel. But, in Gentoo I can't get a keycode. I get this instead.

Quote:
KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

FocusOut event, serial 34, synthetic NO, window 0x2400001,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 34, synthetic NO, window 0x2400001,
mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


What is wrong, if anything is indeed wrong...?


And I understand that a file called xmodmapsrc has to be created to proceed with mapping and assigning functions to the keys. Should I create it as a normal user..? or as root..? And in which directory..? home...?

Is the windows key associated with any specific function...? I can't see anything happening in the X environment when i press it, but I am not really sure...
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Sun Feb 01, 2009 1:20 am    Post subject: Reply with quote

The Windows key is typically reported as Super_L or Super_R, for the left and right keys respectively. Its default value, if any, depends on the application. You can treat it much like alt, shift, and control.

An xmodmaprc is one way to record all the changes you want xmodmap to make when you start up. It is typically placed in ~/.xmodmaprc. Your X startup script should call xmodmap to load this file.
Back to top
View user's profile Send private message
jaydoc
n00b
n00b


Joined: 04 Jan 2009
Posts: 61
Location: Miami, FL

PostPosted: Mon Feb 02, 2009 1:12 am    Post subject: Reply with quote

Thanks for that Hu...

On the Arch linux install, I can get a keycode for the volume wheel.
Quote:

KeyRelease event, serial 34, synthetic NO, window 0x4600001,
root 0x7b, subw 0x4600002, time 105458209, (22,42), root:(27,448),
state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x4600001,
root 0x7b, subw 0x4600002, time 105458628, (22,42), root:(27,448),
state 0x0, keycode 174 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False


But in Gentoo I only get the output in my first post. What can I do to map the wheel correctly.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Tue Feb 03, 2009 4:25 am    Post subject: Reply with quote

I would expect you to get some sort of response if xev were getting input, and that it would get input if the X server detected the change. Therefore, I would suspect that either a kernel configuration problem or an X server configuration problem has made your Gentoo system unable to detect the scroll wheel input. If you boot the Gentoo kernel with the Arch Linux userland, does xev report events? If you boot the Arch Linux kernel with the Gentoo userland, does it work?
Back to top
View user's profile Send private message
jaydoc
n00b
n00b


Joined: 04 Jan 2009
Posts: 61
Location: Miami, FL

PostPosted: Tue Feb 24, 2009 2:41 pm    Post subject: Reply with quote

I know it has been, but I wanted to add this.

On the same laptop, while using the same kernel, I removed XFCE as my desktop, and installed enlightenment 17. It has a nice GUI keybinding utility as a module, that detected all my extra keys, and assigned them the functions I wanted, all on the fly, without hassle.

I'm positive I did not upgrade the kernel. I even removed xev, and yet the keybindings work nice.

So I didn't try switching userland and kernel - I switched one DE for another and everything worked well - not a solution in the strictest sense, but good enough for me..!

thanks hu.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Feb 24, 2009 4:41 pm    Post subject: Reply with quote

jaydoc wrote:
I know it has been, but I wanted to add this.

On the same laptop, while using the same kernel, I removed XFCE as my desktop, and installed enlightenment 17. It has a nice GUI keybinding utility as a module, that detected all my extra keys, and assigned them the functions I wanted, all on the fly, without hassle.

I'm positive I did not upgrade the kernel. I even removed xev, and yet the keybindings work nice.

So I didn't try switching userland and kernel - I switched one DE for another and everything worked well - not a solution in the strictest sense, but good enough for me..!

thanks hu.
That's not very surprising since e17 can detect and work with only keycodes for the extra keys (no need to run xmodmap, etc).
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum