WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Xorg, ffmpeg4 & XVesa issues again  (Read 4778 times)

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Xorg, ffmpeg4 & XVesa issues again
« on: May 02, 2020, 11:27:59 AM »
I need ffmpeg4 installed to be able to see live videos from Firefox. On the other hand I also need to have my desktop screen and keyboard configured in my language. But it seems to be incompatible to have all three features at the same time.

Once ffmpeg4 is installed the screen has expanded so much that it hides the bmpanel and the terminal stands out from the visible. On the other hand it doesn't recognize my keyboard anymore (it remains in US mode in the xrvt terminal, in the editor and in gedit).

I saw in the forum search a post that Xvesa.tcz had to be deleted and then at the console prompt to write this:

Code: [Select]
tce-load -wil Xorg-7.7
startx

I did. But it's still the same.

For more information in /etc/sysconfig/tcedir/onboot.lst there is no Xorg installed but there are several Xorg extensions listed in Tiny Core System Stats -> Installed tab yes.

What do you think is going on with it?

« Last Edit: May 02, 2020, 11:36:46 AM by ferran »
TC CorePlus v.11.1 i686 & lots of coffe

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #1 on: May 02, 2020, 01:02:18 PM »
If you use graphics intensive apps, you will need to use Xorg-7.7 or Xorg-7.7-3d instead of Xvesa.

All you need for a desktop are either Xorg-7.7, flwm, aterm and wbar or Xorg-7.7-3d, flwm, aterm and wbar.

Usually Xorg-7.7 will configure itself automatically, but depending on your hardware, you might need some kind of configuration.

The getlocale/mylocale extension together with appropriate boot codes will set a language for you and the keyboard can also be defined.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #2 on: May 02, 2020, 04:56:40 PM »
juanito thanks for ask:

/My /mnt/sda1/boot/extlinux/extinux.conf contains currently this

Code: [Select]
DEFAULT core
LABEL core
KERNEL /tce/boot/vmlinuz
INITRD /tce/boot/core.gz
APPEND quiet  waitusb=5:UUID="784fdf72-..." tce=UUID="784fdf72-..." tz="Europe/Madrid" lang="ca_ES.UTF-8"

I think I don't need re-install again the timezone with getlocale either...  :-\

-I've all this installed already (instead flwm I've flwm_topside), but the rest it's the same.

-My hardware (read my signature) has VGA compatible controller with Nvidia Geforce MCP79 and audio HDA Realtek (this last without problems, audio its OK)

I can't copy/paste  info from terminal, but i think it is Genuine Intel Core 2> x80/86 64 bit

I guess the difficulty to merge Nvidia and Xorg, but surely will have solutions don't?
« Last Edit: May 02, 2020, 05:15:18 PM by ferran »
TC CorePlus v.11.1 i686 & lots of coffe

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #3 on: May 03, 2020, 12:58:02 AM »
Your setup looks OK for the language (I presume mylocale is set "onboot").

For the keyboard, from the faq:
Quote
My keyboard is not US. How to add a keymap?

The extension "kmaps.tcz" was created just for this. It includes all keymaps from the kbd package. Keymaps have to be changed in the console, not in X.
So, for a quick test, load the extension, exit to prompt, and type:

sudo loadkmap < /usr/share/kmap/qwerty/fi-latin9.kmap

To make this permanent, add the extension kmaps.tcz to your persistent tce directory, and then either use the bootcode kmap=qwerty/fi-latin9, or add the command to /opt/bootsync.sh (missing the sudo, since bootsync is executed as root):

nvidia graphics hardware is often difficult to deal with since their up to date drivers are closed source and the open source hardware coverage is patchy.

Maybe the best place to start is to look in /var/log/Xorg.0.log for the section analogous to this:
Code: [Select]
[   114.683] (==) Matched intel as autoconfigured driver 0
[   114.683] (==) Matched modesetting as autoconfigured driver 1
[   114.683] (==) Matched fbdev as autoconfigured driver 2
[   114.683] (==) Matched vesa as autoconfigured driver 3

..and paste it here so we can see which drivers Xorg thinks it needs.
« Last Edit: May 03, 2020, 01:00:49 AM by Juanito »

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #4 on: May 03, 2020, 05:05:28 AM »
Hello juanito:

First I went to the prompt and wrote my exact .kmap

Code: [Select]
sudo loadkmap < /usr/share/kmap/qwerty/es.kmap

After i added into /mnt/sda1/boot/extlinux/extinux.conf this chunk

Code: [Select]
kmap=qwerty/es

And I finally looked up the lines you asked for from /var/log/Xorg.0.log

Code: [Select]
[    45.130] (==) Matched nouveau as autoconfigured driver 0
[    45.130] (==) Matched nv as autoconfigured driver 1
[    45.130] (==) Matched modesetting as autoconfigured driver 2
[    45.130] (==) Matched fbdev as autoconfigured driver 3
[    45.130] (==) Matched vesa as autoconfigured driver 4
[    45.130] (==) Assigned the driver to the xf86ConfigLayout

Its seems I am using nouveau, not nvidia

By the way: I found  surffing in the web the command:

Code: [Select]
xrandr -s 1024x768

it works... (this is the right screen resolution i need) but it will not persistent with i restart the pc. I should add it into a file xorg.conf into /x11/ but i don't found it.

I'll reboot the computer and let you know how it goes.
« Last Edit: May 03, 2020, 05:11:50 AM by ferran »
TC CorePlus v.11.1 i686 & lots of coffe

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #5 on: May 03, 2020, 05:11:14 AM »
juanito:

The last changes i did not works when i rebooted.

TC CorePlus v.11.1 i686 & lots of coffe

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #6 on: May 03, 2020, 06:02:49 AM »
It looks like Xorg believes the nouveau driver is the best one for your nvidia hardware.

You can try the nouveau-KERNEL and xf86-video-nouveau extensions and see if that helps?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #7 on: May 03, 2020, 07:02:37 AM »
Hi ferran
... I should add it into a file xorg.conf into /x11/ but i don't found it. ...
Click on the  Exit  icon and select  Exit to Prompt.  Then execute the following:
Code: [Select]
sudo su
Xorg -configure
cp /root/xorg.conf.new /home/tc/
chmod 666 /home/tc/xorg.conf.new
cp -a /home/tc/xorg.conf.new /home/tc/xorg.conf
exit
startx
When the GUI appears, attach a copy of the  xorg.conf  file that is now in your home directory.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #8 on: May 03, 2020, 11:35:51 AM »
@juanito

Keyboard : The change into extlinux.conf  "kmap=qwerty/es.kmap" not works too. Maybe in other location, i'll try it after.

Screen: I installed from Apps xf86-video-nouveau.tcz but i can't find noveau-KERNEL.tcz or similar in TC Coreplus 10.0

Also I don't know what can i do with xf86-video-nouveau.tcz (not enough usage info)  :-\


@Rich

Screen:I did all you said, but when i rebooted the pc the screen returns to 1280x768 resolution (too big)

The content of /home/tc/xorg.conf is

Code: [Select]
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/local/lib/xorg/modules"
FontPath     "/usr/local/lib/X11/fonts/misc/"
FontPath     "/usr/local/lib/X11/fonts/TTF/"
FontPath     "/usr/local/lib/X11/fonts/OTF/"
FontPath     "/usr/local/lib/X11/fonts/Type1/"
FontPath     "/usr/local/lib/X11/fonts/100dpi/"
FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
Load  "glx"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option     "Protocol" "auto"
Option     "Device" "/dev/input/mice"
Option     "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"            # [<bool>]
        #Option     "HWcursor"            # [<bool>]
        #Option     "NoAccel"            # [<bool>]
        #Option     "ShadowFB"            # [<bool>]
        #Option     "VideoKey"            # <i>
        #Option     "WrappedFB"          # [<bool>]
        #Option     "GLXVBlank"          # [<bool>]
        #Option     "ZaphodHeads"        # <str>
        #Option     "PageFlip"            # [<bool>]
        #Option     "SwapLimit"          # <i>
        #Option     "AsyncUTSDFS"        # [<bool>]
        #Option     "AccelMethod"        # <str>
        #Option     "DRI"                # <i>
Identifier  "Card0"
Driver      "nouveau"
BusID       "PCI:2:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

My screen configuration 'would be' this or not... but

Code: [Select]
$ xrandr --newmode "1024x768_85.00" 94.50 1024 1096 1200 1376 768 771 775 809 -HSync +Vsync

xrandr: Failed to get size of gamma of output default

By the moment works

Code: [Select]
xrandr -s 1024x768

only in the current session.
TC CorePlus v.11.1 i686 & lots of coffe

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #9 on: May 03, 2020, 12:00:03 PM »
I installed from Apps xf86-video-nouveau.tcz but i can't find noveau-KERNEL.tcz or similar in TC Coreplus 10.0

The nouveau-KERNEL extension is only in the 11.x repos

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #10 on: May 03, 2020, 12:23:36 PM »
Hi ferran
... Screen:I did all you said, but when i rebooted the pc the screen returns to 1280x768 resolution (too big) ...
The purpose of this was to have Xorg create an initial config file to be adapted to your needs.

Replace the section called "Screen" at the end of the file with this:
Code: [Select]
Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
Viewport   0 0
Depth     8
Modes     "1024x768"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
Modes     "1024x768"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
Modes     "1024x768"
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
Modes     "1024x768"
EndSubSection
EndSection

Then:
Code: [Select]
sudo mkdir /etc/X11
sudo cp -a xorg.conf /etc/X11
echo etc/X11 >> /opt/.filetool.lst
filetool.sh -b

Now reboot and see if the screen looks any better.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #12 on: May 03, 2020, 01:12:33 PM »
Ah - I'd forgotten about those, I don't think they ever worked very well..

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #13 on: May 03, 2020, 02:29:12 PM »
@juanito

I'd already installed inside my Tiny CorePlus all this:

-x86-video-nouveau.tcz
-firmware-nvidia.tcz (recommended by nouveau-5.4.3-tinycore64.tcz)
-nouveau-5.4.3-tinycore6.tcz

Now what can i do with it?

@Rich

All I did it all. Now I'm going to reboot the machine...

TC CorePlus v.11.1 i686 & lots of coffe

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Xorg, ffmpeg4 & XVesa issues again
« Reply #14 on: May 04, 2020, 05:56:24 AM »
I don't see that nouveau-5.4.3-tinycore recommends using firmware-nvidia - I believe it is recommending using the closed source driver.

Anyway, to use x86-video-nouveau and nouveau-5.4.3-tinycore, exit to the console prompt, load the extensions and then "startx".