LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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: 635
Blog Entries: 20

Rep: Reputation: 81
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: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
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: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
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 08-16-2019, 07:59 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,314

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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?
 
Old 08-18-2019, 02:54 AM   #5
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Quote:
Originally Posted by glorsplitz View Post
I find this interesting, thanks for posting. Uses the whole gpio?
No it only uses 26 of the 40 pins. Yo will probably have to use a cut down HDU cable to get the the wires out from under the display if you want to use any remaining gpio pins.

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

How about you post some video of it action?
Not much to see I run blackbox as WM and the display itself is only 480x320 (most applications don't fit properly o such a small screen ... I had a picture but my photo-bucket account if already oversize.
In any case for me it was interesting because I'm thinking of getting rid of the 8 physical buttons with LEDs setup and use python to make virtual buttons on the display: this will cost a much bigger footprint on storage but much less manual work to have it work (soldering, making holes for the buttons and leds ... etc).
 
Old 08-18-2019, 10:51 AM   #6
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,314

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
8 physical buttons with LEDs setup and use python to make virtual buttons
and what are they for?

I'm asking because I got sata port multiplier and it has LED header for the hard drives, I wanted to connect LED but whenever I connect one it's constantly on, I suspect maybe because it needs a resistor to limit the voltage, it does flicker when there is activity, I don't know anything about resistors other than to get a few different ones and keep trying till I find one that looks like it works.
 
Old 08-19-2019, 07:52 AM   #7
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Quote:
Originally Posted by glorsplitz View Post
and what are they for?
They are connected to the GPIO so they do whatever I programmed them to do
In my case I use them for:
  • shutdown
  • enabling remote admin from internet
  • nothing currently
  • managing usb port 1 (onboard ethernet on RPi2)
  • managing usb port 2
  • managing usb port 2
  • managing usb port 4
  • managing usb port 5
I know it's relatively safe to unplug usb dongle anytime but doing that would not take care of other actions that would need to happen (for instance unpluging a wifi dongle bridged with some other interface). Its a lot of work to do that (soldering, wiring making holes on the case and writing code to manage the actions you want to happen).

Quote:
I'm asking because I got sata port multiplier and it has LED header for the hard drives, I wanted to connect LED but whenever I connect one it's constantly on, I suspect maybe because it needs a resistor to limit the voltage, it does flicker when there is activity, I don't know anything about resistors other than to get a few different ones and keep trying till I find one that looks like it works.
What Hardware is that sata multiplexer connected to ? (unless you are talking about Annapurna Labs SBC it's probably not even ARM based CPU)
I really doubt you will have much control over the leds on the sata multiplexer unless they get seen by the system as connected to GPIO ports.
 
Old 08-25-2019, 09:25 AM   #8
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Quote:
Originally Posted by louigi600 View Post
Does anyone know how to get the FB console also working on this display ?
I found this artcle and i managed to get the fbcon to show up on the lcd screen, but I've not yet found a way to invert on of the exes on the touchscreen.

Essentially the article says to put ths at the beginning of your cmdline.txt
Code:
fbcon=map:10 fbcon=rotate:2 fbcon=font:ProFont6x11
the rotation seems not to work though.

Last edited by louigi600; 08-25-2019 at 09:58 AM.
 
  


Reply



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 05:59 AM.

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
Open Source Consulting | Domain Registration