Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 May, 2013, 21:29:06 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: TiLP Linux issues -  (Read 499 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« on: 08 May, 2012, 02:13:47 »
0

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.  Big frown


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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.
Logged

Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:17:22
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #1 on: 08 May, 2012, 09:52:46 »
0

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 Smiley

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:

1
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:

1
2
3
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 Smiley
Logged

Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 19:51:42
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1853

Total Post Ratings: +208

View Profile WWW
« Reply #2 on: 08 May, 2012, 10:01:47 »
0

Without seeing Jim's reply through the post notifier on #omnimaga, I'd have missed this topic Smiley

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 Smiley
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:17:22
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #3 on: 08 May, 2012, 10:05:48 »
0

When I tried to figure out how to run it without root, I ran is some difficulties Tongue
Maybe I should take another look I've less school work.
Logged

Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 19:51:42
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1853

Total Post Ratings: +208

View Profile WWW
« Reply #4 on: 08 May, 2012, 10:17:03 »
+1

On my side, I "never" run TILP as root Smiley

It's a matter of executing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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).
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:17:22
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #5 on: 08 May, 2012, 10:27:16 »
0

Indeed, that works!
Thank you Lionel Smiley
Logged

cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #6 on: 08 May, 2012, 23:05:36 »
0

Thank you it works!  Cheesy I'll keep running it as root, it's less work Tongue

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: 08 May, 2012, 23:31:10 by cyanophycean314 » Logged

willrandship
Omnimagus of the Multi-Base.
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 22:45:51
Date Registered: 11 April, 2010, 03:08:32
Location: Between Venus and Mars
Posts: 2638


Total Post Ratings: +66

View Profile
« Reply #7 on: 09 May, 2012, 01:06:14 »
0

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.
Logged

Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 19:51:42
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1853

Total Post Ratings: +208

View Profile WWW
« Reply #8 on: 09 May, 2012, 07:12:22 »
0

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 Wink
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 Smiley

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.
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #9 on: 09 May, 2012, 22:56:42 »
0

I only do it for Lua Dev > Tools, Source, Finished. It's nice and organized. I'll try to live without.  Smiley

Edit: It's also used with startup programs in ndless like nclock
« Last Edit: 09 May, 2012, 23:23:04 by cyanophycean314 » Logged

Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 19:51:42
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1853

Total Post Ratings: +208

View Profile WWW
« Reply #10 on: 10 May, 2012, 07:05:02 »
0

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 Smiley

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: 10 May, 2012, 08:58:21 by Lionel Debroux » Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.394 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.