hi every
bug report is in https://bugzilla.redhat.com/show_bug.cgi?id=442250
my workaround: after resuming, run the following script:
<script> #!/bin/sh # This command will swap the buttons of ALL mouses under KDE
xmodmap -e "pointer = 3 2 1 4 5" xmodmap -e "pointer = 3 2 1 4 5" </script>
no typo: you must run the command twice...
this is called heuristical computing, if you catch my meaning...
suomi
On Fri, 2008-06-20 at 17:56 +0200, fedora wrote:
hi every
bug report is in https://bugzilla.redhat.com/show_bug.cgi?id=442250
my workaround: after resuming, run the following script:
<script> #!/bin/sh # This command will swap the buttons of ALL mouses under KDE xmodmap -e "pointer = 3 2 1 4 5" xmodmap -e "pointer = 3 2 1 4 5"
No faster than using the applet. Now if it could run automagically after, F9 picking up the mouse again. That would be nice.
Thanks for the script.
Frank
On Fri, 2008-06-20 at 17:56 +0200, fedora wrote:
my workaround: after resuming, run the following script:
Have you tried putting your script into one of the power management script directories [1], so it gets run automatically?
Obviously the real fault should be fixed, but in the meantime...
1. One of the sub-directories inside /etc/pm/
On Sat, 2008-06-21 at 15:32 +0930, Tim wrote:
On Fri, 2008-06-20 at 17:56 +0200, fedora wrote:
my workaround: after resuming, run the following script:
Have you tried putting your script into one of the power management script directories [1], so it gets run automatically?
Obviously the real fault should be fixed, but in the meantime...
- One of the sub-directories inside /etc/pm/
If script was put there would it need any ext .sh etc.., am thinking /etc/pm/config.d As here it not a resume just losing the setup after using kvm. (no coder here)
Frank
Tim:
Have you tried putting your script into one of the power management script directories [1], so it gets run automatically?
Frank Murphy:
If script was put there would it need any ext .sh etc.., am thinking /etc/pm/config.d As here it not a resume just losing the setup after using kvm. (no coder here)
On my Fedora 7 laptop, I have a script in /etc/pm/sleep.d/ for re-applying some parameters to my hard drive after a wakeup. You could use it as a template, changing the (hdparm) command line to whatever commands you were using to fix your problem.
#!/bin/bash
case "$1" in
thaw|resume) /sbin/hdparm -B255 /dev/sda ;;
*) ;;
esac
exit $?
The file permissions are rwx-r-xr-x. Though I suspect it only needs to be executable by root, I haven't bothered testing.