Author Topic: TiLP Linux issues  (Read 9674 times)

0 Members and 1 Guest are viewing this topic.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
TiLP Linux issues
« 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:

Code: [Select]
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.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TiLP Linux issues
« Reply #1 on: May 08, 2012, 03:52:46 am »
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:
Code: [Select]
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-utilsThis will install all the dependencies to compile TiLP.
Then run this:
Code: [Select]
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 :)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TiLP Linux issues
« Reply #2 on: May 08, 2012, 04:01:47 am »
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 :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TiLP Linux issues
« Reply #3 on: May 08, 2012, 04:05:48 am »
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.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TiLP Linux issues
« Reply #4 on: May 08, 2012, 04:17:03 am »
On my side, I "never" run TILP as root :)

It's a matter of executing
Code: [Select]
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).
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TiLP Linux issues
« Reply #5 on: May 08, 2012, 04:27:16 am »
Indeed, that works!
Thank you Lionel :)

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TiLP Linux issues
« Reply #6 on: May 08, 2012, 05:05:36 pm »
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?
« Last Edit: May 08, 2012, 05:31:10 pm by cyanophycean314 »

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: TiLP Linux issues
« Reply #7 on: May 08, 2012, 07:06:14 pm »
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.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TiLP Linux issues
« Reply #8 on: May 09, 2012, 01:12:22 am »
Quote
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.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TiLP Linux issues
« Reply #9 on: May 09, 2012, 04:56:42 pm »
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
« Last Edit: May 09, 2012, 05:23:04 pm by cyanophycean314 »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TiLP Linux issues
« Reply #10 on: May 10, 2012, 01:05:02 am »
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).
« Last Edit: May 10, 2012, 02:58:21 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.