Netsurf and erratic keyboard/mouse interaction

Here for general support for B series TVs, request and problem solve area.
Post Reply

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Netsurf and erratic keyboard/mouse interaction

Post by marcelru »

Hi everybody,

First of all: all the best for the new year!

Two days ago I started with the connection of a mouse and keyboard to my TV. ( see http://forum.samygo.tv/viewtopic.php?f= ... =30#p10611). This morning, after playing around with different modules and device special file insertion places I got it working (thanks again, arris69).

My hardware:

UE40B7020WW (CI, no +)
logitech M505 mouse
logitech K750 keyboard
(both connected to the tv through a single unifying receiver)
sitecom 4-port micro hub

(and yes, I like shiny black hardware ;-) )

The software is just the mouse and keyboard package (v 0.01), with a modified startup script.
FW version 2008-something, from may 2009, T-CHU7DEUC, I never bothered to upgrade to the last SamyGO compatible version, after all, if it ain't broke, don't fix it.
Now when I start NetSurf, the mouse works fine until I hit the keyboard: typically, I move the mouse from the center of the screen to the text bar at the top, start typing a URL and after that the mouse and keyboard seem to have a fight as to who gets cursor control first. The mouse cursor blinks at a high rate and ultimately moves to where I send it, at a very low pace. When I leave everything alone, after some seconds, I can use the keyboard again, but as soon as I touch the mouse, its motion becomes erratic and slow again. This process is repeatable, indefinitely (well, at least for a quarter of an hour). I played around with mousepolling speed options for usbhid.ko, but that didn't do much. I couldn't find any information on this in the forum or the wiki, so I turn to you all.

Does anyone in this forum have the same experience?

Is the erratic movement caused by the mouse driving modules (usbhid.ko and evdev.ko) or by NetSurf? So far I haven't tested any other SamyGO "games" requiring a mouse.

Or is it a hardware problem (an old wired USB mouse shows the same behaviour, so I personally don't think so).

Thanks for any input,

marcelru
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Netsurf and erratic keyboard/mouse interaction

Post by arris69 »

marcelru wrote:Hi everybody,

First of all: all the best for the new year!

Two days ago I started with the connection of a mouse and keyboard to my TV. ( see http://forum.samygo.tv/viewtopic.php?f= ... =30#p10611). This morning, after playing around with different modules and device special file insertion places I got it working (thanks again, arris69).

..
np, but can you pls. provide exact commands and modules (from where you got them) for your setup :?:
for the lag of mouse i have no idea, sry.

thnx
arris
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: Netsurf and erratic keyboard/mouse interaction

Post by jw1001 »

I think other users have reported a similar problem
http://forum.samygo.tv/viewtopic.php?f= ... t=10#p4533

I recall earlier versions of Netsurf were worse, but there was a recommended "Options" setting for

fb_mouse_delay:50

that seemed to help.
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Netsurf and erratic keyboard/mouse interaction

Post by marcelru »

Hi all,

@jw1001:

I have the latest SamyGO version of Netsurf, with fb_mouse_delay set to 50: doesn't help I'm afraid.

@arris69

The modules are the ones by geo650, taken from:

SamyGO Mouse and Keyboard Modules v0.01.zip

I made this script to install them:

Code: Select all

#!/bin/sh
#
#
# ad-hoc script to start mouse and keyboard kernel modules 
#
# mostly taken from examples by geo650 and arris69.
# 


echo mouse_and_keyboard.sh $1

MODULE_ROOT=/dtv/usb/sda1/.module/mouse_keyb
DEV_ROOT=/dtv

case "$1" in

start)

# insert kernel modules

insmod $MODULE_ROOT/evdev.ko
insmod $MODULE_ROOT/usbhid.ko
# make device special files for mouse (not sure if all are needed, but this 
# works)

if [ ! -d $DEV_ROOT/input ] ; then
        mkdir -p $DEV_ROOT/input -m 777
fi

if [ ! -d $DEV_ROOT/usb ] ; then
        mkdir -p $DEV_ROOT/usb -m 777
fi

mknod $DEV_ROOT/input/mice c 13 63 -m 666

mknod $DEV_ROOT/input/mouse0 c 13 32 -m 666
mknod $DEV_ROOT/input/mouse1 c 13 33 -m 666

mknod $DEV_ROOT/hidraw0 c 251 0 -m 666
mknod $DEV_ROOT/hidraw1 c 251 1 -m 666
mknod $DEV_ROOT/usb/hiddev0 c 180 96 -m 666

i=0
while [ $i -le 7 ] ; do
        mknod $DEV_ROOT/event$i c 13 $(($i + 64)) -m 666
        i=$(( i + 1 ))
done
                                                        
;;                                                      
                                                        
stop)                                                   
                                                        
# remove modules                                        
                                                        
rmmod usbhid                                            
rmmod evdev                                             
                                                        
# cleanup files                                         
                                                        
rm -rf $DEV_ROOT/input                                  
rm $DEV_ROOT/usb/hiddev*                                
rm $DEV_ROOT/event*                                     
rm $DEV_ROOT/hidraw*                                    
                                                        
;;                                                      
                                                        
status)                                                 
                                                        
        cat /sys/class/input/input*/name                
;;                                                      
                                                        
*)                                                      
        echo "Usage: $0 {start|stop|status}" 1>&2       
        exit 0                                          
;;                                               
esac  

Like I said, things are working, but for the keyboard/mouse interaction.

grtz,

marcelr
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: Netsurf and erratic keyboard/mouse interaction

Post by jw1001 »

I don't know what difference it would make, but the original MouseandKeyboard.sh file supplied creates 32 device nodes

Code: Select all

# Generate input device nodes at /dtv
i=0
while [ $i -le 31 ]
do
	mknod /dtv/event$i c 13 $(($i + 64))
	i=$(( i + 1 )) 
done
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Netsurf and erratic keyboard/mouse interaction

Post by arris69 »

hi,

made some mouse tests (on UE..B7020):
modules from different extensions packs all ok.

netsurf just needs device file /dtv/event0 (i am not sure about wireless combi devices, mouse and keyboard, so in this case maybe /dtv/event1 is used too)

Code: Select all

svn log /home/Video-HD/samygo/SamyGO-Extensions/InitScripts/trunk/init.d/01_05_hiddev.init
------------------------------------------------------------------------
r1080 | arris69 | 2011-01-10 16:31:59 +0100 (Mon, 10. J?n 2011) | 1 line

NetSurf needs /dtv/event. .
the wireless mouse has a bit strange movement and reaction time but it's usable (wheel don't works, test distance ~3m) .
wired usb mouse has better movement and reaction, wheel worked too.

so it's maybe something in the protokoll or this wireless sh... just works up to 1 meter

dmesg

Code: Select all

<6>usb 3-1: new low speed USB device using ohci-s5h2x and address 3
<6>usb 3-1: configuration #1 chosen from 1 choice
<6>input: Microsoft Microsoft Wheel Mouse Optical? as /class/input/input10
<6>input: USB HID v1.00 Mouse [Microsoft Microsoft Wheel Mouse Optical?] on usb-ohci-s5h2x-1
<6>usb 3-1: USB disconnect, address 3
<6>usb 3-1: new low speed USB device using ohci-s5h2x and address 4
<6>usb 3-1: configuration #1 chosen from 1 choice
<6>input: Logitech USB Receiver as /class/input/input11
<6>input: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-ohci-s5h2x-1
<6>input: Logitech USB Receiver as /class/input/input12
<6>input,hiddev96: USB HID v1.11 Device [Logitech USB Receiver] on usb-ohci-s5h2x-1
# lsmod

Code: Select all

Module                  Size  Used by    Tainted: P  
hidp 17440 2 - Live 0xbf62e000
bnep 16800 0 - Live 0xbf628000
rfcomm 32216 0 - Live 0xbf61f000
l2cap 25284 11 hidp,bnep,rfcomm, Live 0xbf617000
hci_usb 15004 0 - Live 0xbf612000
bluetooth 56768 7 hidp,bnep,rfcomm,l2cap,hci_usb, Live 0xbf603000
g_file_storage 31272 0 - Live 0xbf5fa000
dummy_hcd 22948 1 g_file_storage, Live 0xbf5f3000
usbhid 44484 0 - Live 0xbf5e7000
evdev 10240 0 - Live 0xbf5e3000
vfb 6728 0 - Live 0xbf5e0000
cfbimgblt 2688 1 vfb, Live 0xbf5de000
cfbfillrect 3776 1 vfb, Live 0xbf5dc000
cfbcopyarea 3168 1 vfb, Live 0xbf5da000
fb 37648 1 vfb, Live 0xbf5cf000
rt73 355884 0 - Live 0xbf577000
rt2870sta 678004 1 - Live 0xbf4d0000
usb_storage 37796 1 - Live 0xbf4c5000
ohci_hcd 18692 0 - Live 0xbf4bf000
ehci_hcd 29992 0 - Live 0xbf4b6000
usbcore 129064 9 hci_usb,dummy_hcd,usbhid,rt73,rt2870sta,usb_storage,ohci_hcd,ehci_hcd, Live 0xbf495000
8139too 23296 0 - Live 0xbf48e000
cifs 235860 0 - Live 0xbf453000
fuse 50292 2 - Live 0xbf445000
usb_fault 3928 2 - Live 0xbf443000
samdrv 3861516 26 - Live 0xbf093000
rfs 71688 7 - Live 0xbf080000
fsr_stl 251568 6 - Live 0xbf041000
fsr 258912 1 fsr_stl, Live 0xbf000000
hth
arris
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Netsurf and erratic keyboard/mouse interaction

Post by marcelru »

Hi arris69,

I also think that so many event devices aren't necessary.
Anyway, I just had a go again and I think it has to do with interaction between keyboard and mouse in the software. As soon as I hit enter e.g., in google search, (which doesn't work to start a search BTW) the mouse slows down to almost no speed at all.

So probably it is software, not the hardware. On a "normal" linux box the combo just works the way it should. In a different thread (specific for netsurf) I read similar complaints about keyboard functionality. Anyway, I will try and install some other apps that require keyboard and mouse, just to see if it is NetSurf or something else.

thanks for your efforts,

marcelr

Post Reply

Return to “[B] Support”