Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: ferran on May 02, 2020, 08: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:
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?
-
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.
-
juanito thanks for ask:
/My /mnt/sda1/boot/extlinux/extinux.conf contains currently this
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?
-
Your setup looks OK for the language (I presume mylocale is set "onboot").
For the keyboard, from the faq: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: [ 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.
-
Hello juanito:
First I went to the prompt and wrote my exact .kmap
sudo loadkmap < /usr/share/kmap/qwerty/es.kmap
After i added into /mnt/sda1/boot/extlinux/extinux.conf this chunk
kmap=qwerty/es
And I finally looked up the lines you asked for from /var/log/Xorg.0.log
[ 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:
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.
-
juanito:
The last changes i did not works when i rebooted.
-
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?
-
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:
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.
-
@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
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
$ 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
xrandr -s 1024x768
only in the current session.
-
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
-
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:
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:
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.
-
Hi Juanito
... The nouveau-KERNEL extension is only in the 11.x repos
Are you referring to this:
http://www.tinycorelinux.net/10.x/x86/tcz/nouveau-4.19.10-tinycore.tcz.info
and this:
http://www.tinycorelinux.net/10.x/x86_64/tcz/nouveau-4.19.10-tinycore64.tcz.info
-
Ah - I'd forgotten about those, I don't think they ever worked very well..
-
@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...
-
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".
-
@ferran
It might help, even tho I do not have nvidia if you could supply some more details please.
a) just the snippet of lspci -v
like mine...26:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 15d8 (rev c9) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7b86
that should allow us to truly identify your pci id against the very extensive nvidia range found here
http://pciids.sourceforge.net/v2.2/pci.ids
It is possible your device might still need firmware but lets see?
b) There are many ways of playing videos not all require firefox (FF) nor ffmpeg4
Can you supply a url to videos you can not play please.
If they are too naughty pm me if you like
eg I can watch youtube movies with no sound if I have not started pulseaudio with FF
ls /usr/local/tce.installed/ | grep ffmpeg
# no hits
c) In FF -> preferences -> General ....Have you checked the box for DRM
and then gone to
about:plugins
and checked you have OpenH264 and Widevine Content Decryption Module
cheers
-
Hi, ferran. If you want to have ffmpeg on your system without dragging in hundreds of dependencies, you can grab the static build from here:
https://johnvansickle.com/ffmpeg/
The build works perfectly and simply adds two binaries to your system: ffmpeg and ffprobe.
Just put those two binaries somewhere in your PATH, add them to opt/.filetool.lst, then run $ filetool.sh -b
P.S. I find that for full video support on firefox I also need the libavcodec4.tcz extension, but this extension does not have hundreds of dependencies like ffmpeg4.tcz.
-
or you can re-master in seconds (combine with mksquash): libavcodec4.tcz + ffmpeg4 (+ 100 deps) -> into one myFF-video-audio.tcz
i hope your Tera-bytes HDD has lot of empty space. the new myFF-video-audio.tcz will be mounted, so not all files will load in memory.
-
It might be better to use a browser that uses gstreamer rather than ffmpeg libraries - the gstreamer dep files can be modified locally to use only the deps absolutely required.