LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-13-2004, 12:30 PM   #1
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283
Blog Entries: 11

Rep: Reputation: 41
Why does Kpilot work only the first time


Once I boot, synchronizing my Visor using Kpilot is very straightforward. No problem.

Then I keep working and a few hours later I try syncing again, but it fails. I get a message on my Visor: "No connection could be established".

Facing this problem, I used to reboot to be able to synchronize again.

After some time I found that doing:

pstree -p
Kill [kpilotDaemon PID]
kpilotDaemon


would help me synchronize again, without need to reboot.

However, sometimes not even that procedure helps, and I have to reboot anyway.


Could somebody explain why this would happen, and what would be a better way to efficiently synchronize every single time without this juggling?


Your ideas will be highly appreciated.
 
Old 12-28-2004, 06:58 PM   #2
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
Not sure, but for me, dmesg in konsole tells me both /dev/ttyUSB0 and /dev/ttyUSB1 the first time I press it. The second time, it tells me the Palm is connected to /dev/ttyUSB2 and /dev/ttyUSB3.
 
Old 12-28-2004, 10:13 PM   #3
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
Hotplugging is the problem, and unfortunately, there is no good solution, other than perhaps to create a script that kills the old daemon and restarts it.

Linux does not necessarily know where to find the palm pilot. If you point the kpilot deamon to the USB ports, it will look for it and find it where it says it is, that time. Remember USB is pretty dynamic. You can add and remove devices all day long. Unfortunately hotplugging interferes because the port address might be reassigned. Restarting the deamon is the only current solution to this.

Hotplugging in Linux is not as developed as it is in Windoze. It's pretty much an add-on technology, and devices tend to be very proprietary. That makes it difficult to get USB working well, especially with few hardware manufacturers going out of their way to help develop for Linux.

I find that if I try to synch twice with kpilot it won't work. However, if I close the program and restart it, than I am ok (I have kpilot set to close the deamon upon exit). As I said before, you can write a script that will kill and restart the process and assign it to a icon on your desktop. You can call it Pilot Refresh or something. Alternatively, set kiplot to kill the deamon on exit and close kpilot after synching like I do.
 
Old 12-30-2004, 07:32 PM   #4
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thank you, JaseP.
I wrote this simple script:

#! /bin/bash
sudo killproc /opt/kde3/bin/kpilotDaemon
kpilotDaemon

Previously, I used visudo to run sudo without a password and it works.
However, when I run the script as a regular user, I get this message:

sudo: killproc: command not found

Doesn't sudo let me run just any command, as if I were root? This is my sudoers file:

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specificationxgandalf ALL=(ALL) NOPASSWD: ALL


# Defaults specification
Defaults targetpw
%users ALL=(ALL) ALL
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
myusername ALL=(ALL) NOPASSWD: ALL
 
  


Reply



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
Can I configure two mice to work at the same time? njschroe Linux - Hardware 4 02-01-2005 08:42 AM
I have been having a hard time with dualbooting and i think this should work only1gameguru Linux - General 2 12-04-2004 11:37 AM
kpilot korganizer time shift rastavideo Linux - Software 0 08-31-2004 06:40 AM
Sound doesn't work after some time away. SirLancelotX Linux - Software 4 08-14-2003 01:46 PM
Set once and work all the time Rex_chaos Linux - General 7 04-22-2002 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration