New vidcontrol moused error messages

Sascha Wildner saw at online.de
Mon Apr 26 10:35:53 PDT 2004


walt wrote:

This began after today's vidcontrol update:  when starting
moused I get this error message printed eleven times:
vidcontrol: showing the mouse: invalid argument
although the mouse seems to work normally after that.
Walt,

could you install the attached patch (note: it's a patch to 
/usr/src/etc/rc.d/moused so you have to install this file to /etc/rc.d 
after patching) and tell me if your mouse is behaving normally on _all_ 
virtual terminals after rebooting?

The reason for the 11 messages is that /etc/rc.d/moused calls 
'vidcontrol -m' for each virtual terminal it finds in /etc/ttys. This 
works once (for the first terminal) and fails for the rest of the 12 
terminals (syscons returns EINVAL if the SC_MOUSE_ENABLED flag is 
already set). With the old vidcontrol we didn't have an error message 
there so the bug went unnoticed.

The solution seems to be to call 'vidcontrol -m' only once in 
/etc/rc.d/moused. This enables the mouse on all virtual terminals here.

. ..and it saves a little time during booting...:)

Regards,
Sascha
--
http://yoyodyne.ath.cx
*** /usr/src/etc/rc.d/moused	Tue Jan 27 01:42:45 2004
--- /usr/s/src/etc/rc.d/moused	Mon Apr 26 19:15:27 2004
***************
*** 31,39 ****
  		;;
  	esac
  
! 	for ttyv in /dev/ttyv* ; do
! 		vidcontrol < ${ttyv} ${_mousechar_arg} -m on
! 	done
  	echo '.'
  }
  
--- 31,38 ----
  		;;
  	esac
  
! 	vidcontrol ${_mousechar_arg} -m on
! 
  	echo '.'
  }
  




More information about the Bugs mailing list