08-27-2013, 05:20 AM | #1 |
Connoisseur
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
|
Detect id user dismisses "connect to computer" dialog
I just started hacking my KT (added a connector to access the serial console) and now I'm wondering if it's possible to detect if the user has dismissed the "Connect to computer" dialog.
The things I've seen in dmesg and udevadm only show the plug-in and unplug events. What I want to do is if I connect my KT via USB and I dismiss the connection, it should start USB networking automatically. If g_ether module is loaded and I want to connect as masstorage, the masstorage module won't load with a "resource busy" message, which is understandable. Regards Aydan |
09-27-2013, 03:33 PM | #2 |
Connoisseur
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
|
I solved the issue differently in the meantime.
I addad a udev rule to load the g_ether module and start dropbear when the kobo gets plugged in, and I modified the usb udev script to unload the g_ether module before loading the file storage module. This way I get usb network as soon as i connect the kobo and if I click "connect" the usb mass storage still works as expected. |
09-30-2013, 12:44 AM | #3 | |
Connoisseur
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
|
Quote:
Would you mind to share it? |
|
09-30-2013, 12:53 AM | #4 |
Connoisseur
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
|
I'll try to make a writeup over the weekend. I'll be busy over the week.
|
10-11-2013, 09:46 AM | #5 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
|
10-11-2013, 05:56 PM | #6 |
Connoisseur
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
|
I just finished a KoboRoot.tgz with all the necessary scripts and stuff. What is missing is a runonce script to patch Kobo's own /urs/local/Kobo/udev/usb script (I don't want to just copy mine over without checking if it's ok to do so) and testing the thing from a fresh factory reset and upgrade.
I tried putting a selfdeleting script into /etc/rc.d but it seems it doesn't get run. Regards Aydan |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mouse "snap to" dialog box option ignored | cybmole | Sigil | 0 | 08-14-2013 01:01 AM |
How to add Languages to the "Edit Metadata" UI dialog | AlBrown | Library Management | 3 | 08-01-2013 03:15 PM |
Touch "Error Dialog: Cannot open book" | tecweston | Barnes & Noble NOOK | 1 | 10-21-2011 12:12 AM |
Getting calibre to detect "Prologue" and "Epilogue" for TOC | sherman | Calibre | 2 | 09-20-2010 02:21 AM |
"Unable to detect PRS505 disk drive" in Linux | sarchar | Sony Reader | 5 | 01-25-2009 03:52 PM |