LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 08-14-2019, 05:08 AM   #1
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 483
Blog Entries: 13

Rep: Reputation: 46
3.5Inch RPi Display


Has anyone played with the 3.5 inch touchscreen display for Raspberry PI on Slackware ARM ?

Just to make sure we are talking about the same LCD: Geekcreit® 3.5 Inch 320 X 480 TFT LCD Display Touch Board For Raspberry Pi 3 Model B RPI 2B B+
https://www.banggood.com/3_5-Inch-32...p-1023432.html

I found some howtos but they are for rasbian
http://www.plastibots.com/wordpress/...Pi-Elecrow.pdf

Anyone got it to work on Slackware ARM ?
 
Old 08-14-2019, 11:16 PM   #2
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 483

Original Poster
Blog Entries: 13

Rep: Reputation: 46
Update: getting it to work on raspbian was actually even easier then in the document I linked on the initial post since the fbi (I'm guessing that stands for Frame Buffer on spI interface) package is now an official raspbian package. It was a matter of editing a few of files.
http://https://www.raspberrypi.org/f...c.php?t=178443
However, I have an old and cheap version (that I got way back in 2011 but never played with it), that happens to have the touchscreen with the y axis inverted: getting the touchpad to function properly took more time.

Now let's see if I can get it to work on slacwareARM.

I found this information amongst the raspbian fbi package documentation:
Code:
This is fbi, written and maintained by Gerd Hoffmann <kraxel@bytesex.org>

The original source can be found at:
        http://dl.bytesex.org/releases/fbida/
This might me a good starting point.

Last edited by louigi600; 08-14-2019 at 11:50 PM.
 
Old 08-15-2019, 06:56 AM   #3
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 483

Original Poster
Blog Entries: 13

Rep: Reputation: 46
It turns out that it's also really easy on slackwareARM. The fbi package is not necessary as it's just for displaying images on the lcd itself.

Add the spi modules to /etc/rc.d/rc.modules.local
Code:
/sbin/modprobe spi_bcm2835
Add this line to the end of /boot/config.txt
Code:
dtoverlay=piscreen,speed=16000000
Reboot the rpi and you should already see /dev/fb1

Modify /etc/X11/xorg.conf.d/xorg.conf to look like this:
Code:
Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb1"

        Option          "SwapbuffersWait" "true"
EndSection
Add a line like this to xinitrc before the window manager is started (for example in /etc/X11/xinit/xinitrc.blackbox)
Code:
xinput set-prop 'ADS7846 Touchscreen' 'Coordinate Transformation Matrix' 1 0 0 0 -1 1 0 0 1
This will rotate the touchscreen so that it matches the display (alternatively you can rotate the display in /boot/config.txt but I prefer to have the HDMI, audio jack and power pointing up).

Restart X and you should get output on the 3.5 inch lcd.

If something goes wrong (and you still have the HDMI monitor connected) pres CTRL^ALT^F1 and you get the text console to mend things without needing network access to the pi.

Does anyone know how to get the FB console also working on this display ?

Last edited by louigi600; 08-15-2019 at 07:03 AM.
 
2 members found this post helpful.
Old Yesterday, 07:59 PM   #4
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 747

Rep: Reputation: 160Reputation: 160
I find this interesting, thanks for posting. Uses the whole gpio?

That was a lot of people buying it and giving good reviews.

How about you post some video of it action?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GNOME 3.33.2 Released, Krita 4.2 Debuts, RPi Camera Modules on RPi Zeros Power the Penguin Watch Project, Intrinsyc Switches Its Home LXer Syndicated Linux News 0 05-30-2019 06:23 AM
[SOLVED] Changing RPi display driver module issue CollieJim Linux - Kernel 4 11-15-2018 06:54 PM
No joy..writing to 3.5inch floppy Debian 8.1 Jerrold Debian 5 09-01-2015 01:32 PM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 12:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration