LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-19-2007, 04:02 PM   #1
smOk3
Member
 
Registered: Feb 2007
Posts: 43

Rep: Reputation: 15
Treo 650 permissions udev?


Hi all, I am using Slackware 12 and trying to sync it with my palm treo 650. I cannot get kpilot to reconize it. I do a dmesg when I sync and see that it is given dev/ttyUSB0 and dev/ttyUSB1. When I am in the sync process and do a chown me:users /dev/ttyUSB* the sync bar in kpilot starts to move... then it errors and says "Cannot accept Pilot (Permission denied"
I am not sure what to do from here. Thanks for the help.
 
Old 08-19-2007, 06:10 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
You need to add a udev rule for Palm devices under Slackware. I have only done this with the normal Palm line, not the Treo, but looking on Google the only change is that the Treo 650 reports itself as "PalmHandheld" rather than "Palm Handheld" like my Zire does.

In /etc/udev/rules.d, make a file called "pilot.rules", and in the file put the following line:

Code:
BUS=="usb", SYSFS{product}=="PalmHandheld", KERNEL=="ttyUSB*", SYMLINK+="pilot"
Then restart udev with:

Code:
sudo /etc/rc.d/rc.udev restart
Now, if all goes well you should have the device /dev/pilot when you attempt a hotsync. It is important to remember that, since normally you will not have the device node, it only appears during a sync.

You can verify this by starting up a sync and running:

Code:
ls -l /dev/pilot*
Whatever software you are using (KPilot?) should be able to pick up on the links during this period.
 
Old 08-19-2007, 11:11 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Moved: This thread is more suitable in Slackware and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-24-2007, 11:04 PM   #4
smOk3
Member
 
Registered: Feb 2007
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for the reply. I have done what you said, but my palm treo 650 will not sync. I have tryed to create a file called pilot.rules and add " BUS=="usb", SYSFS{product}=="PalmHandheld", KERNEL=="ttyUSB*", SYMLINK+="pilot" " to it, but it still doesn't work.
When I plug my palm in and perform a hotsync, dmesg says

usb 3-1: new full speed USB device using uhci_hcd and address 8
usb 3-1: configuration #1 chosen from 1 choice
visor 3-1:1.0: Handspring Visor / Palm OS converter detected
usb 3-1: Handspring Visor / Palm OS converter now attached to ttyUSB0
usb 3-1: Handspring Visor / Palm OS converter now attached to ttyUSB1

So I know that it is recognized. I start up the kpilot and try to detect settings and it doesn't find the device. If I go to /dev/ and search for ttyUSB0 and ttyUSB1 they both are there and disappears when the palm is done trying to hotsync. If I try to hotsync using root my palm crashes and resets, and kpilot crashes also. I am a bit stuck and any further information to resolving this problem will be appreciated.
 
Old 12-02-2007, 10:30 PM   #5
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
I found in a Fedora Core 7 forum that newer versions of udev apparently require a user to own the device. This udev rule(10-visor.rules) works for me with a Palm Zire 31 in Slackware 12.0.

Quote:
SUBSYSTEMS=="usb", ATTRS{product}=="Palm Handheld", KERNEL=="ttyUSB[13579]", NAM
E="%k", SYMLINK="pilot tts/USB%n", OWNER="<your user name>", GROUP="plugdev", MODE="0660"
Some newer palm pilots use
Quote:
ATTRS{product}=="PalmHandheld"
also per the FC7 forum.

Last edited by shepper; 12-02-2007 at 10:32 PM. Reason: newer Palm Pilots have a ATTRS{product}=="PalmHandheld"
 
Old 12-03-2007, 02:56 AM   #6
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
If you're smart you'll use the libusb mechanism to access the Pilot if kpilot supports that. Last I checked it was using pilot-link so it should be able to do it that way.

The moment the pilot module loads, you're stuck tho. Simpler it is to blacklist that module and just let libusb be your access method.
 
Old 12-03-2007, 06:25 AM   #7
dreyfuss
Member
 
Registered: Jun 2007
Location: Italy
Distribution: Slackware current
Posts: 39

Rep: Reputation: 15
Quote:
Originally Posted by MS3FGX View Post
You need to add a udev rule for Palm devices under Slackware. I have only done this with the normal Palm line, not the Treo, but looking on Google the only change is that the Treo 650 reports itself as "PalmHandheld" rather than "Palm Handheld" like my Zire does.

In /etc/udev/rules.d, make a file called "pilot.rules", and in the file put the following line:

Code:
BUS=="usb", SYSFS{product}=="PalmHandheld", KERNEL=="ttyUSB*", SYMLINK+="pilot"
Then restart udev with:

Code:
sudo /etc/rc.d/rc.udev restart
Now, if all goes well you should have the device /dev/pilot when you attempt a hotsync. It is important to remember that, since normally you will not have the device node, it only appears during a sync.

You can verify this by starting up a sync and running:

Code:
ls -l /dev/pilot*
Whatever software you are using (KPilot?) should be able to pick up on the links during this period.
MS3FGX,i have tried your guide but,when i give the command "ls -l /dev/pilot*",this is the output:
Code:
ls -l /dev/pilot*
/bin/ls: cannot access /dev/pilot*: No such file or directory
What can i do?
P.S.:no track of Treo in my lsusb.

Last edited by dreyfuss; 12-03-2007 at 06:28 AM.
 
Old 12-07-2007, 04:10 AM   #8
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Let me be a little clearer this time.

You don't want to use the visor.ko module for anything newer than a Zire 21. This means that any answer involving /dev/pilot is likely wrong.
 
Old 12-08-2007, 08:57 PM   #9
Whiffle
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
it should be something more like 10-pilot.rules actually..

I have it working on my laptop with my treo 650, using the visor module. Unfortunately, its on the other side of town...I'll try to come back to this when I get home.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Treo 650/700p and Linux jrattner1 Linux - Hardware 3 10-13-2007 03:01 PM
Palm Treo 650 on SLED 10 MikeEnz Linux - Newbie 7 12-31-2006 03:10 PM
Kpilot and treo 650 Peasant Linux - Software 0 04-13-2006 05:07 AM
Linux on the Treo 650 microsoft/linux General 4 12-14-2005 06:32 PM
Treo 650 and Slackware 10.1 darkarcon2015 Slackware 7 08-18-2005 01:33 PM


All times are GMT -5. The time now is 07:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration