Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Udev Kindle Paperwhite
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Udev Kindle Paperwhite
9th Feb, 2013, 07:48 AM
Post: #1
fuchini Offline
Registered
Posts: 13
Joined: Feb 2013
Reputation: 0
Udev Kindle Paperwhite
Hello,

I'm posting here because I want to run a script after connecting my Kindle (/dev/sdg1). When I connect my kindle, nothing happens but it is still mounted according to fstab. I have my Kindle paperwhite in fstab using it's UUID.

The script I'm trying to run creates a text file in my home folder. The script is executable and I can run it normally on its own.

I created this file /etc/udev/rules.d/kindle.rules:

Code:
KERNEL=="sd*", ACTION=="add", SUBSYSTEM=="usb", SYSFS{idVendor}=="1949", SYSFS{idProduct}=="0004", RUN+="/usr/bin/local/MyScript.sh"

When I run this command:

Terminal
sudo udevadm info -a -n /dev/sdg1

I get the text that's attached in Udev.txt

Xbian Version: Xbian 1 Alpha 4
SD Card: SanDisk Class 6
Internet Connection: Wired
Overclocked: Not that I know of.
Everything is connected through a hub (Rosewill RHUB-210).

When I connect it while in
Terminal
udevadm monitor

I get the messages I posted in Udev-Monitor.txt


Attached File(s)
.txt  Udev.txt (Size: 7.41 KB / Downloads: 0)
.txt  Udev-Monitor.txt (Size: 2.57 KB / Downloads: 0)
Find all posts by this user
Quote this message in a reply
9th Feb, 2013, 08:00 AM
Post: #2
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: Udev Kindle Paperwhite
thank you for quick response and editing your post

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
9th Feb, 2013, 08:59 AM
Post: #3
fuchini Offline
Registered
Posts: 13
Joined: Feb 2013
Reputation: 0
RE: Udev Kindle Paperwhite
Ok, it worked by writting ATTRS instead of SYSFS
Find all posts by this user
Quote this message in a reply
9th Feb, 2013, 09:07 AM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Udev Kindle Paperwhite
Can you open an issue on our git so we can include it by default in beta 1?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
9th Feb, 2013, 09:19 AM
Post: #5
fuchini Offline
Registered
Posts: 13
Joined: Feb 2013
Reputation: 0
RE: Udev Kindle Paperwhite
Hello, I don't know how to use git but this wasn't a bug, just trying to run a script through trial and error.
Find all posts by this user
Quote this message in a reply
9th Feb, 2013, 09:21 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Udev Kindle Paperwhite
I now, but you can also suggest enhancements Smile

Git is our main place where we keep track of all feature/enhancements we want to include in a new version and all bug we need to tackle. I'm not asking to implement it for us, just to open an issue there (and we'll label it as an 'enhancement' suggestion).

https://github.com/xbianonpi/xbian/issues?state=open

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 03:44 PM Powered By MyBB, © 2002-2025 MyBB Group.