maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 Bluetooth Keyboard + Mouse scripts (https://talk.maemo.org/showthread.php?t=58258)

qole 2010-07-13 15:33

Re: N900 Bluetooth Keyboard + Mouse scripts
 
smoku: the wiki says I should use this line to "hook into" the device startup. But logging tests sugggest to me that the daemon script isn't being run at all!

Code:

update-rc.d bt-hid-daemon start 99 1 2 3 4 5 . stop 99 0 6

fixfox 2010-07-13 17:37

Re: N900 Bluetooth Keyboard + Mouse scripts
 
Quote:

Originally Posted by jormartr (Post 748478)
I tried it with 0.1 and 0.2, but on both, the list of keyboards appears empty on my n900.

The keyboard is "Leasun Bluetooth Wireless Keyboard".

When launching bt-dbus-connect, it appears on the console:

Code:

cat: can't open '/var/lib/bluetooth/0*/names': No such file or directory
cat: can't open '/var/lib/bluetooth/0*/names': No such file or directory

, and on the n900 screen, the list is empty

It connects when I manually launch:
Code:

dbus-send --system --print-reply --dest=org.bluez /org/bluez/673/hci0/dev_01_18_09_12_04_BD org.bluez.Input.Connect
bt-kbd-remap, tells me there is no keyboard when I launch it, if I have not connected the keyboard.

After connecting with dbus-send, it shows this error:
Code:

/usr/bin/bt-kbd-remap: line 57: syntax error: "fi" unexpected (expecting "then")
I hope I may help.

I have both the apple Mighty Mouse and Apple wireless keyboard (silver).
I am able to pair both devices and have them listed under [Bluetooth Devices]
At this point, on selecting any of them (mouse or keyboard) from the bluetooth devices list and clicking [edit], I do not get the connect button.

I then proceed to install your "BT HID Connect" scripts.
on runing the program, I see both the mouse and keyboard listed.

I then double click on each and get the bluetooth status to turn blue. {so I know they are connected}.

However, I cannot get the pointer to move (although it's visible) and I cannot get any key on the keyboard to work either.

This is as far as I get.

Edit:
I get the very same error messages as quoted above by JORMARTR on trying those commands.

smoku 2010-07-13 19:09

Re: N900 Bluetooth Keyboard + Mouse scripts
 
Quote:

Originally Posted by qole (Post 750461)
Code:

update-rc.d bt-hid-daemon start 99 1 2 3 4 5 . stop 99 0 6

This looks like standard SysV init. Maemo5 uses upstart.
http://intr.overt.org/blog/?p=74

giannoug 2010-07-13 19:25

Re: N900 Bluetooth Keyboard + Mouse scripts
 
Quote:

Originally Posted by bandario (Post 750220)
Nah, no crashes at all touch wood.

My phone has never crashed anything except for DrNok SNES emulator.

I wasn't talking about the device, I was talking about Web and Messaging. I was getting "Internal error ..." messages and all I did on my N900 was installing this script and changing shell to bash.

Anyway those messages stopped now so I can't find out why it happened.

WhiteWolf 2010-07-13 19:43

Re: N900 Bluetooth Keyboard + Mouse scripts
 
Quote:

Originally Posted by WhiteWolf (Post 750344)
To me, it does not work the "-layout es" n900 returns "Error loading new keyboard description".

Anyone know why?

jormartr 2010-07-13 22:02

Re: N900 Bluetooth Keyboard + Mouse scripts
 
Quote:

Originally Posted by qole (Post 750449)
jormartr: it seems to be hitting a blank device ID. When you run "BT HID Connect" from the menu, does your keyboard appear? If so, choose it. Does the bt-hid-connect-mgr.py still crash?

If I use the program on the menu, works, but if I launch /etc/init.d/bt-hid-daemon, or bt-hid-connect-mgr,py, crashes.

bandario 2010-07-14 00:19

Re: N900 Bluetooth Keyboard + Mouse scripts
 
I hate to be a pain in the arse and I know it is always a risk using things out of extras-devel but I would dearly love to restore my phone to the state it was in before installing this.


As stated the program ran for me first time but updated versions just crashed no matter from icon or command line.

I am now left with mouse cursor visible in a lot of places where it regularly messes with my ability to 'click and throw' to scroll.

IE: I have a lot of conversations and I can no longer do a quick drag up or down the screen to send it flying for a while.

How to turn off mouse cursor?! Uninstall process has obviously not been as clean as I'd like.

FreeThinker 2010-07-14 01:43

Re: N900 Bluetooth Keyboard + Mouse scripts
 
Quote:

Originally Posted by bandario (Post 750974)
I hate to be a pain in the arse and I know it is always a risk using things out of extras-devel but I would dearly love to restore my phone to the state it was in before installing this.


As stated the program ran for me first time but updated versions just crashed no matter from icon or command line.

I am now left with mouse cursor visible in a lot of places where it regularly messes with my ability to 'click and throw' to scroll.

IE: I have a lot of conversations and I can no longer do a quick drag up or down the screen to send it flying for a while.

How to turn off mouse cursor?! Uninstall process has obviously not been as clean as I'd like.

I'm having the same issues. Kinetic scrolling wasn't working for me until I uninstalled this. And then, after it rebooted, a mouse cursor appeared and won't go away, although I have kinetic scrolling again.

And don't worry about being a pain--I'm sure qole appreciates everybody's testing and feedback :)

And to qole: Thanks for at least trying to make this stuff work. It's obviously in the very early stages, but if/when you figure out the problems with it it will really make my N900 perfect. BT HID is one thing I really miss from my N810. Thanks again. :D

qole 2010-07-14 08:10

Re: N900 Bluetooth Keyboard + Mouse scripts
 
bandario, FreeThinker:

Yes, I notice some of the same problems. Kinetic scrolling is not working very well, I see a grey screen briefly in the background often when I am moving between apps, and the mouse cursor appears after the phone has been "dormant" for a while.

I am currently using "hidemouse" to get rid of the cursor, but I don't know what to do about the other problems. I'm not sure what's causing them yet. Is it the new evdev_drv.so? I'm not sure.

qole 2010-07-15 04:08

Re: N900 Bluetooth Keyboard + Mouse scripts
 
0.6 fixes the "mouse pointer in text fields" problem. Still working on the other issues.


All times are GMT. The time now is 10:58.

vBulletin® Version 3.8.8