1. The mouse wizard does not retain the "emulation" selection across reboots. This appears to be because the following test always fails:
Code: Select all
if [ ! "`cat /etc/xextraoptions | grep "\\-2button"`" = "" ];then
2. When using xvesa (instead of xorg), selecting "emulation" and rebooting, the emulation works (tested with copy-and-paste) but the right mouse button no longer works. I can restore the right button by changing the following statement:
Code: Select all
echo -n "2" > /etc/mousebuttons
3. An esthetic coding suggesion: Consider setting xextraoptions to either "-shadow -2button" or "-shadow -3button" instead of relying on a default, to match the actual mouse type -- "-3button" merely means "no emulation" to Xkdrive. My changes to implement this are:
Code: Select all
# MBUTOUT="`cat /etc/xextraoptions | sed -e 's/ \-2button//g'`"
[b] MBUTOUT="`cat /etc/xextraoptions | sed -e 's/ \-[23]button//g'`"[/b]
. . .
# echo -n "$MBUTOUT" > /etc/xextraoptions
[b] echo -n "$MBUTOUT -3button" > /etc/xextraoptions[/b]
Hope this helps.
Richard