Ok, duh, I installed libjpeg-turbo and things improved dramatically! No crashing and I'm getting album art. I'll let it run over night. Now to get touch working. I think I'm going to have recompile SDL against tslib. Do I need to just recompile SDL or jivelite also?
This is the screen I'm working with. Seems like it will be pretty nice once I get it all together. I've had touch working using the tslib utilities and now seem to have jivelite working - next is to get them together!Code:alps:/usr/lib# ldd /usr/lib/libSDL-1.2.so.0.11.4 /lib/ld-musl-armhf.so.1 (0xb6f45000) libc.musl-armhf.so.1 => /lib/ld-musl-armhf.so.1 (0xb6f45000)
It has a 3.5mm audio jack, which is audio split off the HDMI and run through a 4334 KSZ Cirrus Logic DAC. I've tested it with squeezelite and a pair of headphones just to see if it works and it does. Haven't really done any critical listening, I'm not under illusions, it's an ancient, inexpensive DAC chip. I'm not too fussy though so if it sounds decent to my ears I might just use it and not worry about using a DAC board.
Also pictured is the project box I'm going to try to use. Mounting the screen to the angled side should make it about right for comfortable operation and viewing.
Results 11 to 20 of 37
Thread: Jivelite on Alpine Linux
-
2020-01-16, 20:22 #11
- Join Date
- Jul 2008
- Posts
- 147
Last edited by sodface; 2020-01-16 at 21:08.
-
2020-01-17, 05:09 #12
- Join Date
- Jul 2008
- Posts
- 147
Touch is actually working so I'm not sure what the ldd check above means. Calibration is off in Jivelite even after running ts_calibrate. I guess that's the next issue to resolve.
-
2020-01-17, 06:20 #13
There is no way to know what was causing the segfault without building a debug version of jivelite and running it in gdb. Even then if the crash is happening within the lua interpreter it becomes even harder to track down.
Calibration in jivelite won't work unless libSDL 1.2 was compiled with libts support. That should be the only library you need to recompile. I helped chill through this for the joggler.Ralphy
1-Touch, 5-Classics, 3-Booms, 1-UE Radio
Squeezebox client builds donations always appreciated.
-
2020-01-17, 06:44 #14
- Join Date
- Jul 2008
- Posts
- 147
Last edited by sodface; 2020-01-17 at 06:55.
-
2020-01-17, 19:43 #15
- Join Date
- Jul 2008
- Posts
- 147
Well the recompiled SDL seems to be working with tslib. Touch point accuracy is good but it's just constantly bringing up the context menu like I've done a long click instead of just a tap. Probably a knob that needs turning in /etc/ts.conf? I'll mess with it more tomorrow. I'm starting to second guess the screen a little, it seems a little dark.
-
2020-01-18, 07:06 #16
- Join Date
- Jul 2008
- Posts
- 147
Ok thanks to Ralphy, Jeff, Chill, et al, this is now working quite well, though the screen brightness (lack of) probably is what it is.
My currently working settings:
Code:alps:/home/sodface# cat /etc/ts.conf # generated by libts module_raw input (null) module pthres pmin=1 module dejitter delta=100 module linear (null) module skip nhead=2
Code:export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_TSDEVICE=/dev/input/event0 export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_PLUGINDIR=/usr/lib/ts export SDL_MOUSEDRV=TSLIB export SDL_MOUSEDEV=$TSLIB_TSDEVICE export JIVE_NOCURSOR=1 /opt/jivelite/bin/jivelite
Code:alps:/home/sodface# cat /media/mmcblk0/usercfg.txt gpu_mem=128 dtparam=audio=on hdmi_cvt=800 480 60 6 hdmi_group=2 hdmi_mode=87 hdmi_drive=2
-
2020-01-18, 07:44 #17
That's great!
Too bad about the brightness. Hopefullly, you find a way to improve it.Ralphy
1-Touch, 5-Classics, 3-Booms, 1-UE Radio
Squeezebox client builds donations always appreciated.
-
2020-01-26, 10:53 #18
- Join Date
- Jul 2008
- Posts
- 147
Here's the "prototype" (that's what I'm calling it so I don't feel so bad about the botched execution) player based on the Uctronics 5" touchscreen, pi zero, squeezelite and jivelite on Alpine Linux. I'm probably going to rip it apart and redo it all in a couple of weeks when I come back from work travel.
It's setup on a little folding camp table for the photo op, now sitting on my desk.Last edited by sodface; 2020-01-26 at 10:56.
-
2020-09-15, 16:38 #19
- Join Date
- Jul 2008
- Posts
- 147
I had a second one of these Uctronics 5" screens, it's as dark and dull as the other one. This is with Alpine x86_64 on a Wyse 3030 thin client.
-
2020-09-19, 15:54 #20
- Join Date
- Jul 2008
- Posts
- 147
A few notes to self on getting the x86_64 working:
Coaxing Alpine to set the correct screen resolution took me a bit longer than I'd like to admit. The default grub command line has "nomodeset" which I don't think actually does anything for this specific device (Wyse 3030) with the i915 based video I think you also have to add "i915.modeset=0" to really disable KMS, so the resolution kept getting set to 1920x1080 which resulted in tiny text on the 800x480 Uctronics 5" display. I added the video= argument to the grub command line:
Code:jl-01:~# cat /etc/default/grub GRUB_TIMEOUT=2 GRUB_DISABLE_SUBMENU=y GRUB_DISABLE_RECOVERY=true GRUB_CMDLINE_LINUX_DEFAULT="modules=sd-mod,usb-storage,ext4 nomodeset quiet rootfstype=ext4 video=800x480M@60mD" jl-01:~# grub-mkconfig -o /boot/grub/grub.cfg
Code:#tty1::respawn:/sbin/getty 38400 tty1 tty1::respawn:/bin/login -f root
Code:jl-01:~# cat /root/.profile /root/jivelite.sh &
Code:jl-01:~# cat jivelite.sh #!/bin/sh for dev in /dev/input/event* do tsdev=$(ts_finddev ${dev} 1 2> /dev/null) if printf "${tsdev}" | grep -q caught then break fi done fbset -g 800 480 800 480 32 export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_TSDEVICE=${dev} export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_PLUGINDIR=/usr/lib/ts export SDL_MOUSEDRV=TSLIB export SDL_MOUSEDEV=$TSLIB_TSDEVICE export JIVE_NOCURSOR=1 dd if=/dev/zero of=/dev/fb0 /usr/bin/jivelite &
Last edited by sodface; 2020-09-20 at 08:07.