Omnimaga
Calculator Community => TI Calculators => General Calculator Help => Topic started by: cyanophycean314 on May 07, 2012, 08:13:47 pm
-
I've been trying to get TiLP to work on Ubuntu recently. It works fine with my TI 84+, but it doesn't with my Nspire.
In the following terminal output, I have my Nspire plugged in and turned on. TiLP has already detected my Nspire with DirectLink in Port #1. Now I'm just refreshing the dirlist and it doesn't work. D:
TiLP2 - Version 1.13, (C) 1999-2008 Romain Lievin
THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY
PLEASE READ THE DOCUMENTATION FOR DETAILS
built on Apr 26 2010 05:38:16
tilp-INFO: setlocale: en_US.UTF-8
tilp-INFO: bindtextdomain: /usr/share/locale/
tilp-INFO: textdomain: tilp2
ticables-INFO: ticables library version 1.3.0
ticables-INFO: setlocale: en_US.UTF-8
ticables-INFO: bindtextdomain: /usr/share/locale
ticables-INFO: textdomain: libticables2
ticables-INFO: kernel: 2.6.38-14-generic
tifiles-INFO: tifiles library version 1.1.2
tifiles-INFO: setlocale: en_US.UTF-8
tifiles-INFO: bindtextdomain: /usr/share/locale
tifiles-INFO: textdomain: libtifiles2
ticalcs-INFO: ticalcs library version 1.1.3
ticalcs-INFO: setlocale: en_US.UTF-8
ticalcs-INFO: bindtextdomain: /usr/share/locale
ticalcs-INFO: textdomain: libticalcs2
ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
tilp-INFO: Searching for link cables...
ticables-INFO: Link cable probing:
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
tilp-INFO: Searching for hand-helds on DirectLink...
ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
ticalcs-INFO: Checking hand-held status:
(tilp:5318): ticables-WARNING **: usb_clear_halt (could not clear/halt ep 2: No such file or directory).
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
ticalcs-INFO: device address request:
ticalcs-INFO: 0000:4003->0000:4003 AK=00 SQ=01 HC=d5 DC=ec0f (2 bytes)
ticalcs-INFO: 0F EC
ticalcs-INFO: assigning address 6401:
ticalcs-INFO: 6400:4003->6401:4003 AK=00 SQ=01 HC=00 DC=1343 (4 bytes)
ticalcs-INFO: 64 01 FF 00
(tilp:5318): ticables-WARNING **: usb_bulk_write (error submitting URB: No such file or directory).
Any ideas? Thanks.
-
The version of TiLP in the repositories is outdated, so you will need to compile TiLP from source.
Don't worry, it is quite easy :)
First download this script: http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh
Copy it to your home directory ("/home/your_user_name")
Open a terminal (Applications --> Accessories -->Terminal)
Run this:
sudo apt-get install subversion autoconf automake libtool libglib2.0-dev zlib1g-dev libusb-dev libgtk2.0-dev libglade2-dev libsdl1.2-dev gettext bison flex groff texinfo xdg-utils
This will install all the dependencies to compile TiLP.
Then run this:
chmod +x ./install_tilp.sh
sudo ./install_tilp.sh
You will be asked for your password, enter it (its normal that you don't see it while typing).
Then wait for the installation to finish.
When its done (without any errors) you have successfully installed and compiled TiLP. To use tilp just run "sudo tilp" in a terminal.
Then you should be able to use your Nspire just fine :)
-
Without seeing Jim's reply through the post notifier on #omnimaga, I'd have missed this topic :)
Just a couple things to add to Jim's good, detailed post:
* I contacted the Debian package maintainer when releasing TILP II 1.14 and 1.15, but he never replied and the packages never got updated. The only distros with proper packages for libti* / gfm / tilp are Arch Linux and openSUSE.
* TILP does not need to be run as root, if the procedure contained in the CONFIG file, mentioned by the install_tilp.sh script, is applied. It's just a matter of creating a file for udev, whose name and contents are detailed into the CONFIG file :)
-
When I tried to figure out how to run it without root, I ran is some difficulties :P
Maybe I should take another look I've less school work.
-
On my side, I "never" run TILP as root :)
It's a matter of executing
cat << EOF > /etc/udev/rules.d/20-ticables.rules
# SilverLink
ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="0451",
ATTR{idProduct}=="e001", MODE="0660", GROUP="plugdev"
# TI-84+ DirectLink
ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="0451",
ATTR{idProduct}=="e003", MODE="0660", GROUP="plugdev"
# TI-89 Titanium DirectLink
ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="0451",
ATTR{idProduct}=="e004", MODE="0660", GROUP="plugdev"
# TI-84+ SE DirectLink
ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="0451",
ATTR{idProduct}=="e008", MODE="0660", GROUP="plugdev"
# TI-Nspire DirectLink
ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="0451",
ATTR{idProduct}=="e012", MODE="0660", GROUP="plugdev"
EOF
or anything equivalent, and making sure that your unprivileged user is in the "plugdev" group (`groups`, and `usermod` if necessary).
-
Indeed, that works!
Thank you Lionel :)
-
Thank you it works! :D I'll keep running it as root, it's less work :P
Edit: I have a folder inside a folder, but on TiLP it shows a folder with a question mark inside of it. Any ideas?
-
Yeah, I just run it as root too. I think I trust the devs of tilp enough for that.
After all, I installed it in the first place. That's plenty of opportunity for a smart hacker.
-
Edit: I have a folder inside a folder, but on TiLP it shows a folder with a question mark inside of it. Any ideas?
Yes: it's not supported yet. Few people seem to be using it, but you happen to be one of them ;)
The corresponding feature request is http://sourceforge.net/tracker/?func=detail&aid=3459852&group_id=18378&atid=368378 ; but you needn't post there, as I'm aware of the feature request and of this topic :)
As I wrote in the feature request description, implementing the feature may require changing places other than the dirlist code in calc_nsp.c (libticalcs). The Nspire family is the first TI calculator with support for more than one level of folders.
-
I only do it for Lua Dev > Tools, Source, Finished. It's nice and organized. I'll try to live without. :)
Edit: It's also used with startup programs in ndless like nclock
-
After looking at it, indeed, a dozen places (just in libticalcs and tilp) need changing. This figure only takes into account those occurrences that can trivially be found (related to traversing trees of nodes), but there's likely to be some fallout elsewhere (for instance, other file operations, or other data structures).
Merely listing files and transferring them from the calculator requires changing only a subset of the occurrences, but well, the job should either be done correctly, or not at all :)
And needless to say, nested folder support for Nspire needs to be done without breaking TI-Z80 support (no folders) and TI-68k support (single level of folders).