Originally Posted by The Real Bev
"The stated command does indeed work ...."
Doesn't work at all in Slackware 13.37/Fvwm95, running as root. The light comes on and then goes off at the second scroll-lock press, but nothing else happens.
Why is this still a problem?
I take back my original assertion. Since a recent upgrade to Ubuntu I haven't got the scroll-lock to work either. Neither the aforementioned bash script nor typing the command on a console work.
A quick check on the console reveals:
achim@ubuntu-desktop:~$ xmodmap -pke | grep Scroll_Lock
keycode 78 = Scroll_Lock NoSymbol Scroll_Lock
achim@ubuntu-desktop:~$ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3 Scroll_Lock (0x4e)
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
Note that 0x4e = 78 decimal.
From this I would normally deduce that the problem probably lies with my hardware set up which links keyboard, mouse and monitor to various machines via a switch. Only trouble is that I've been using this set up for years without a hitch. The use of the scroll-lock key does appear to get from the keyboard to the switch as indicated by a blinking light. At this point (and I'm not sure of the mechanism involved) the O/S should pass this on to my USB-Switch, which should then provide printer access to the machine which just issued 2 scroll-lock hits in succession. This works for the one and only Win2000 box I've got but neither of the Ubuntu Linux machines... well not in the past 10 months, anyway.