dch26
Posts: 23
Joined: Fri Jun 29, 2012 3:32 pm
Location: UK

mouse support via gpm

Fri Jul 06, 2012 7:05 pm

i installed gpm: apt-get install gpm
started it: /etc/init.d/gpm start

and it works lovely in the console physically attached to the pi.
i can move a mouse cursor around, cut n paste text, etc.
:)

however......when i launch an SSH session now, it is incredibly slow.
unusably so.

if i kill gpm: /etc/init.d/gpm stop

then the existing SSH session returns to warp speed.

read the docs for gpm, and cant see a flag to tell it not to affect remote sessions.

am i doing something wrong? pi-specific issue? user error? :)

cheers
dch

update - i have just realised that it is not just SSH sessions that it slows down. it also brings samba shares to their knees too......i will turn it off for now i think!!!

User avatar
clickykbd
Posts: 117
Joined: Wed Jun 06, 2012 2:21 am
Location: Austin, Texas
Contact: Website

Re: mouse support via gpm

Sat Jul 07, 2012 1:56 am

I've got gpm running also... don't have samba configured (yet) but I haven't noticed the effects you speak of otherwise with ssh sessions.

Have you glanced at /var/log/messages to make sure your mouse itself isn't the culprit? I've had issues with USB devices including mice causing the network driver to freak out, lots of dwg_otg resets, among other things. The simplest commands take forever to execute in this state.

Do you notice these problems in X with the same mouse (but without gpm running)?

dch26
Posts: 23
Joined: Fri Jun 29, 2012 3:32 pm
Location: UK

Re: mouse support via gpm

Sat Jul 07, 2012 9:48 am

thx for your reply clickykbd,

should have mentioned:
Linux pisces 3.1.9+ #138 PREEMPT Tue Jun 26 16:27:52 BST 2012 armv6l
(fully up to date)

when i start X, i do get erratic behaviour from my usb devices....keyboard in particular. it seems to repeat the last key i pressed (infinitely) - sometimes! (until i press another key to stop it). very annoying if you are trying to type a long command. i will try another keyboard/mouse set!

possibly troublesome hardware:
keyboard & mouse combo: LOGIK lwkbom10 (each claim 5v 100mA)
usb hub: LP7HUB11 (provides 5v 2A)

for some reason - i cant open "/var/log/messages" to answer your question. i'll have to look into why.

i'm sure you know this already - but for the benefit of others who may stumble on this thread:-

re: samba - just in case it' handy......this config (/etc/samba/smb.conf) shares the root and all below it:

Code: Select all

[global]
   workgroup = WORKGROUP
   server string = Pi server
   dns proxy = no
   security = share
[homes]
   comment = Home Directories
   browseable = yes 
   path=/ 
   read only = no 
   create mask =  0775	 
   directory mask = 0775 
   public = yes
   guest ok = yes
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes
if you dont want to share root (some would consider this dangerous - but when you are developing on a closed network.....then do as you wish!!) then you change the "path=/" in the "home" section, to the path you wish to share. eg "path=/home/raspbian"

then, just go to your windows pc and access \\pi-name or ip

i will report back on usb/gpm issue

cheers
dch

User avatar
clickykbd
Posts: 117
Joined: Wed Jun 06, 2012 2:21 am
Location: Austin, Texas
Contact: Website

Re: mouse support via gpm

Sat Jul 07, 2012 1:46 pm

I'm not sure how you tried to view /var/log/messages, but try:

Code: Select all

tail -f /var/log/messages
ctrl-c to quit watching it.

Return to “General programming discussion”