WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: What do I install for full Xorg functionality?  (Read 5910 times)

Offline stzero

  • Newbie
  • *
  • Posts: 6
What do I install for full Xorg functionality?
« on: May 12, 2020, 03:12:42 PM »
I am new to Tiny Core and Linux. I installed Xorg-7.7.tcz OnBoot and removed Xvesa.tcz from onboot.lst. This seemed to work, but I am having troubles with the backlight, and guessed that I might be missing some packages. My graphics card is AMD/ATI, so I also installed xf86-video-ati.tcz. That causes the screen to go black on boot. I feel I am missing many of the necessary Xorg packages, but could not find a good list of all Xorg packages in order of necessity/importance, or something like that.

Is there a step-by-step resource for installing all Xorg extensions? Or should I be getting full functionality from only the X-org7.7.tcz package?

aus9

  • Guest
Re: What do I install for full Xorg functionality?
« Reply #1 on: May 13, 2020, 12:37:40 AM »
Until you get a better reply.....I am going to assume by full you mean Xorg 3d

Code: [Select]
tce-load -w firmware-amdgpu xf86-video-amdgpu Xorg-7.7-3d
Q1 Are you on 32 bit (x86) version of TC?

Q2 Do you have a boot loader menu that allows you to boot into vesa or xbase or something like that

Q3  Have you ever made a separate boot list before?

Ignoring the fact the exe you may see in my code box.....is not yet in the repo....
Q4 Is that something what you are after?

Code: [Select]
inxi -Gxxx
Graphics:
  Device-1: AMD vendor: Micro-Star MSI driver: amdgpu v: kernel
  bus ID: 26:00.0 chip ID: 1002:15d8
  Display: server: X.Org 1.20.6 driver: amdgpu
Code: [Select]
unloaded: modesetting,vesa
  alternate: ati,fbdev resolution: 1920x1080~60Hz s-dpi: 96
  Message: Unable to show advanced data. Required tool glxinfo missing.
tc@box:~$ uname -r
5.4.3-tinycore64

If so you may like to have a backup of your onboot.lst
Once you have reverted the changes you made....

Then copy and rename that onboot.lst and call it test.lst

Here is mine....ignore any missing TCEs you have not downloaded
Quote
haveged.tcz
mc.tcz
nano.tcz
firmware-amdgpu.tcz
xf86-video-amdgpu.tcz
Xorg-7.7-3d.tcz
openbox-config.tcz
dbus.tcz
libXfont.tcz
libcroco.tcz
sakura.tcz
leafpad.tcz

inxi is a very nice tool so forgive me for suggesting you do this next.
Code: [Select]
tce-load -w wget perl5
tce-load -i wget perl5
# I do not want these in your boot list no reason given today
# next we download the script
cd ~/.local/bin/
/usr/local/bin/wget --no-check-certificate \
https://raw.githubusercontent.com/smxi/inxi/master/inxi
# make the script executable, then exit back to your home dir
chmod +x inxi
cd  ~

A full reboot is required.....and at menu stage edit the xbase entry....is the easiest IMHO
so it reads lst=test.lst syslog

Now post the contents of
Code: [Select]
dmesg | grep firmware
inxi -Gxxx

Whatever is in your test.lst....the important thing is the order of loading these packages
firmware-amdgpu.tcz
xf86-video-amdgpu.tcz
Xorg-7.7-3d.tcz

firmware may not be needed
the xf86 TCE has a dependency of graphics-KERNEL so the kernel modules load first
then the driver
then Xorg 3d

Keep a copy of /var/log/Xorg.0.log for now in your home dir
call it xorg1.txt
You can view it in a normal text editor but for now I will wait to see if I have over loaded your comprehension levels

Good luck


« Last Edit: May 13, 2020, 12:42:10 AM by aus9 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: What do I install for full Xorg functionality?
« Reply #2 on: May 13, 2020, 04:36:18 AM »
As the xf86-video-ati info file says, some cards require firmware-radeon.tcz. That should be the only thing you're missing for 2d usage.
The only barriers that can stop you are the ones you create yourself.

Offline stzero

  • Newbie
  • *
  • Posts: 6
Re: What do I install for full Xorg functionality?
« Reply #3 on: May 13, 2020, 09:36:57 AM »
Thanks for the thorough responses! I have the 32bit version of TC. I use the Grub2 bootloader, and am not sure if I can boot into vesa from there (I assume that I was booting into vesa by default before installing xf86-video-amdgpu). I did not know about separate boot lists. I might use it in the future, but did not in this case.

In short:

tce-load -w Xorg-7.7 seemed to give me full 2d usage, but without control of the backlight

tce-load -w firmware-radeon xf86-video-ati Xorg-7.7 resulted in a black screen upon boot

tce-load -w firmware-amdgpu xf86-video-amdgpu Xorg-7.7-3d gave me full functionality, including control of the backlight

I am not sure why the second option did not work.

The inxi tool does seem useful, as it might have helped me identify the ideal driver for my device sooner. But I had a problem installing all the dependencies necessary for inxi. aus9, were your instructions a workaround for that problem?



Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: What do I install for full Xorg functionality?
« Reply #4 on: May 13, 2020, 12:36:52 PM »
The two AMD/ATI drivers span different generations. Older GPUs use radeon and newer use amdgpu.
The only barriers that can stop you are the ones you create yourself.

aus9

  • Guest
Re: What do I install for full Xorg functionality?
« Reply #5 on: May 13, 2020, 08:59:50 PM »
Quote
I had a problem installing all the dependencies necessary for inxi

I am submitting inxi to repo. It deliberately will not force any deps on you except perl5.
Due to one guru dealing with multiple issues, it may take some time to land.

Here is my new info snippet
Quote
Comments:   Online manual is here
            https://smxi.org/docs/inxi-man.htm

            inxi can show system hardware, CPU, drivers, Xorg, Desktop,
            --Kernel, gcc version(s), Processes, RAM usage, and a
            -----wide variety of other useful information.

            The following may be useful but its up to you to decide how
            much info to share on a forum or IRC
            dmidecode.tcz for bios info
            util-linux.tcz for blockdev info
            usb-utils.tcz for usb device info
            lm-sensors.tcs for sensor info
            upower.tcz for power/battery info
            libXrandr.tcz may be Xorg installed for graphic resolutions

It looks like you needed libXrandr?

sheesh I wrote that last line poorly

2) are you saying you could not see any firmware messages in dmesg?

Code: [Select]
dmesg | grep firmware
amdgpu 0000:26:00.0: Direct firmware load for amdgpu/picasso_gpu_info.bin failed with error -2
amdgpu 0000:26:00.0: Direct firmware load for amdgpu/picasso_sdma.bin failed with error -2
SNIP

I am offtopic but I am going away to this location next week
Code: [Select]
inxi -W 6530,AU
Weather:
  Temperature: 18.9 C (66 F) Conditions: Clear sky
  Current Time: Thu May 14 01:15:06 2020 Source: WeatherBit.io
« Last Edit: May 13, 2020, 09:17:21 PM by aus9 »

aus9

  • Guest
Re: What do I install for full Xorg functionality?
« Reply #6 on: May 14, 2020, 12:16:05 AM »
I forgot to mention why seeing your dmesg might help some 32 bit users who, may be short on resources. You decide if you fall into that camp.

When I count the number mentions of my firmware versus the missing ones in the firmware file list showing in Apps, for my graphics codename ....I find 3.... one of which ends in am4 and I happen to know I have an am4 socket motherboard. So I could, if I was short of resources, make a private TCE with 3x firmwares and an install script. YMMV

cheers

aus9

  • Guest
Re: What do I install for full Xorg functionality?
« Reply #7 on: May 14, 2020, 05:20:50 AM »
I have to get the 64 bit inxi fixed. Its a mess. Will re-submit in about 2 weeks.
I struggle to get into anything basic (to me) like framebuffer graphics

for inxi....min deps at this should match the current 32 bit one

coreutils.tcz
dmidecode.tcz
pci-utils.tcz
perl5.tcz
procps.tcz

but I am not sure I needed all of them on 64 bit. perl5 and pci-utils yes
I have not needed to load coreutils dmidecode or procps to have a working inxi

but more testing needed.

my mistake.