You are not logged in.
Pages: 1
Thanks for the welcome and the suggestion.
Sadly the grub idea didn't do anything. I didn't really expect it to since most of the results I got when searching for solutions on this was that the volume slider made the sound jump around at random in windows too. I think the reason for the weird combos sent is that acer want to make sure everyone is using their programs for the laptop to make the volume control work. Since they never made one for linux though here we are.
On the bright side I figured out most Xlib stuff I need by now I think so soon there might be a very hacked together low quality fix for this. I have no idea if acer use the same sort of key combos on other models though so it might only be useful for this specific model.
First of all I'm sorry if this has been posted before but I couldn't find any topic on this specific issue after searching around.
I got a acer aspire 8730G. It got a few shiny media keys with background light and a volume slider. Setting up most of those keys were no problem since they use the normal XF86Audio keys signals. When setting XF86AudioRaiseVolume and XF86AudioLowerVolume to raise and lower the volume the volume jumped around seemingly at random when using the volume slider.
I used xev to see what was going on and it turns out that the volume slider sends both XF86AudioLowerVolume and XF86AudioRaiseVolume in a pattern when you use it. My first idea was to use a keycombo to bind it correctly but that won't work out very well since the sequences it sends isn't fixed length (they're 2-3 keys long).
What's left is to use a keycombo with a very low timeout. After testing a bit with xev again I noticed that the keys within the key sequence sent are sent 10 ms apart and there's a 100ms delay before the next sequence begins.
So to get to my actual question. Is there a program for X/ob that can handle keycombos where you can set a timeout lower than 100 ms? Or would it be easy to write something similar yourself? I haven't really done a lot of programing and never made anything for X but I know enough to make usable console/backend stuff.
If anyone is curious here is the keycombos sent from the volume slider.
The sequence sent depends on the current volume. The slider have 8 'steps' in it. So in the list below the number on the left is the current volume setting.
XF86AudioRaiseVolume = R
XF86AudioLowerVolume = L
Raise:
0: RR
1: LLR
2: RR
3: LLL
4: RR
5: LLR
6: RR
7: LLL
Lower:
8: RRR
7: LL
6: RRL
5: LL
4: RRR
3: LL
2: RRL
1: LL
For example if the volume is at 2 and you slide the volume down to 1 it sends RRL.
So to summarize a bit I'm wondering if there is a program that you can use to bind keycombos where you can set a very low timeout (<100ms). If there isn't any already how hard would it be to make a windowless application that can grab keys globally? I started reading up on xlibs keygrab functions which I assume I will have to use here.
The best solution would obviously be if this whole thing had already been solved but I've been searching quite a bit for a solution to this without finding anything so I don't really have my hopes up on that.
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.