Fossapup Tips & Tricks

Moderator: 666philb

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 110 times
Been thanked: 128 times

Fossapup Tips & Tricks

Post by 666philb »

This post will be pinned to the top of this fossa forum and eventually be populated with tips, tricks & work'a'rounds. This first post will be an index to various tips posted in this thread and elsewhere.


Graphic Driver Setup Tips viewtopic.php?p=8978#p8978
Add a PPA to fossapup viewtopic.php?p=9261#p9261
Hardware video decoding in MPV & Celluloid video player viewtopic.php?p=9267#p9267
ASCII console color graphics for Fossapup64 viewtopic.php?f=146&t=969

Last edited by 666philb on Sun Nov 01, 2020 5:56 pm, edited 1 time in total.
User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 110 times
Been thanked: 128 times

Graphic Driver Setup

Post by 666philb »

here's some tips on setting up your graphics driver on fossapup64.

fossapup comes with a compositor called picom that can help give a smooth experience OTB with some setups but can also cause some quirks on others.

picom settings can be accessed with
menu>>>desktop>>>jwmdesk>>>window effects or
menu>>>setup>>>screen/graphics wizard>>>picom compositor


first thing to do is find what driver you are using. menu>>>setup>>>screen/graphics wizard>>>report video

Nvidia cards.
install the nvidia driver from quickpet straight away!! quickpet >>> drivers
the open source nouveau driver is poor, low performance and doesn't play well with picom.

once installed setup the nvidia 450 driver for vsync:

  1. menu>>>system>>>nvidia x server settings
  2. x server display configuration
  3. advanced
  4. tick 'force full composition pipe line'. (for 340 driver you need to add this manually see https://wiki.archlinux.org/index.php/NV ... en_tearing)
  5. save to x configuration file.
    note the the 5th option re-writes /etc/X11/xorg.conf but fails to preserve you keyboard and language setup. it does however create a backup of the original /etc/X11/xorg.conf and you can copy and paste those settings back in from there.

picom you may need some tweaks
vsync off (as you are using the drivers vsync)
backend xrender (this worked best for me)


Intel cards.

intel cards should work smoothly OTB with vsync working.
if you are experiencing any oddities in applications (e.g.googlearth not displaying properly)
you can try swapping between the intel and modesetting driver by editing /etc/X11/xorg.conf then restarting X

swap modesetting for intel or vice versa

Section "Device"
Identifier "Card0"
Driver "modesetting" #card0driver
BusID "0:2:0" #card0busid
EndSection

in picom i found the best settings were
vsync on
backend glx


Amd/ati

i've only tested the radeon driver and this works well OTB on my setup.
in fact it's the first time i've had vsync working on this old netbook.
anyone that has a more modern amd card i'ld like to hear what works for you.

in picom
vsync on
backend glx

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 110 times
Been thanked: 128 times

Add a PPA to fossapup

Post by 666philb »

@sc0ttman's pkg allows you to easily add a PPA to fossapup.
here's an example adding and installing the latest kodi stable.

add the PPA (note that if this fails it's probably because there's not packages for this pup ... ie ubuntu focal)

Code: Select all

pkg add-repo ppa:team-xbmc/ppa ubuntu focal

switch to the new repo (pkg rl will list all installed repos)

Code: Select all

pkg repo focal-teamxbmc

install kodi

Code: Select all

pkg get kodi
User avatar
Grey
Posts: 1426
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 58 times
Been thanked: 201 times

Hardware video acceleration in Celluloid video player (and most likely in MPV)

Post by Grey »

To enable hardware video acceleration we need do in Celluloid:
Preferences>>Miscellaneous and add a line like this in "Extra MPV Options":

Code: Select all

hwdec=auto-safe

After that, (the video file should play), you can press the "i" key in the player to display information about the decoder. If it worked, then in the upper right corner it will say something like "hwdec: vaapi" for intel or "hwdec: nvdec" for nvidia.

I suspect that it will work from the command line and for the MPV player.

Added. Yes, it works in MPV too.

Code: Select all

mpv -hwdec=auto-safe heresomefile.mkv
mpv_scr.png
mpv_scr.png (323.04 KiB) Viewed 9444 times

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
ETP
Posts: 31
Joined: Mon Jul 20, 2020 8:21 pm
Location: UK
Has thanked: 5 times
Been thanked: 22 times

Re: Hardware video acceleration in Celluloid video player (and most likely in MPV)

Post by ETP »

Grey wrote: Thu Nov 05, 2020 5:42 pm

To enable hardware video acceleration we need do in Celluloid:
Preferences>>Miscellaneous and add a line like this in "Extra MPV Options":

Code: Select all

hwdec=auto-safe

After that, (the video file should play), you can press the "i" key in the player to display information about the decoder. If it worked, then in the upper right corner it will say something like "hwdec: vaapi" for intel or "hwdec: nvdec" for nvidia.

I suspect that it will work from the command line and for the MPV player.

Added. Yes, it works in MPV too.

Code: Select all

mpv -hwdec=auto-safe heresomefile.mkv

mpv_scr.png

Hi Grey,

Thanks for your tip which is new to me. I have now included it in my mpv.conf file which
is reproduced below and contains some additional mpv tips/information.

Code: Select all

# This file (mpv.conf) goes in ~/.config/mpv/
# Revised 27th June 2018 to include slang and screenshot-directory (Needed in some Pups when root is not automatically used) - ETP
# Revised 11th June 2020 to correct error in subtitle selection method. - ETP
# Revised 7th  Nov  2020 to add hw acceleration per tip from forum member "Grey" & add note on toggling stats display - ETP
# Additional notes:
#
# --no-border is used within launch scripts. e.g.  /usr/bin/mpv --no-border  [url or path to file/script]
# To quit the TV press keyboard letter q
# To resume later at the same position when viewing a film or video, use instead keyboard letter Q (Upper case)
# To toggle between windowed & full-screen mode press keyboard letter f (Or a fast double left click of the rodent)
# Use numbers 0 (up) and 9 (down) across the top of the keyboard to adjust volume.
# To take a screenshot press keyboard letter s
# Toggle visibility of subtitles (when available) with keyboard letter v
# To pause or resume play use keyboard letter p or the space bar.
# In later versions of mpv keyboard letter "i" will give a quick glimpse of stats. Shift plus "i" will toggle the display on and off. 
#
geometry=50%:50%
slang=en,eng,english
screenshot-directory=/root/my-documents/images/
hwdec=auto-safe
Regards ETP
Current go-to Pup since Feb 2019 - BionicPup64 8.0
Video - https://photos.app.goo.gl/HYLupyMGcQFP81z69

On test - Ubuntu Cinnamon Remix 20.10 (Groovy Gorilla)
Video - https://photos.app.goo.gl/xGbQYtioXt6mzoi48
User avatar
Grey
Posts: 1426
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 58 times
Been thanked: 201 times

Re: Hardware video acceleration in Celluloid video player (and most likely in MPV)

Post by Grey »

ETP wrote: Sat Nov 07, 2020 8:34 pm

I have now included it in my mpv.conf file

We now have three notes to mention:

  1. This line can be added to /root/.config/mpv/mpv.conf file.
  2. Hardware decoding does not work with any video (like very old .avi), but with more or less modern ones.
  3. Will work with any player that uses mpv as a base.

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
Grey
Posts: 1426
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 58 times
Been thanked: 201 times

Connecting a gamepad via bluetooth in Fossapup

Post by Grey »

One of the methods. I did it like this. I connected my faithful 8BitDo M30 gamepad (it can be connected in two ways, both by wire and by bluetooth)

  1. "Menu>>Setup>>Remove builtin packages" and remove "bluez".
  2. Install from PPM "bluez_5.53".
  3. Install from PPM "blueman_2.1.2" (I compiled fresh, but this one is fine too)
  4. Menu>>System>>Bluetooth manager
    If it swears at this point about the absence of a daemon, then write and run script:

    Code: Select all

    #!/bin/sh
    /etc/init.d/bluetooth start
    bluetoothd &
    blueman-manager
  5. Click on the bluetooth icon in the system tray and call up the list of devices.
  6. We search for a device, right-click on it, make it trusted and connect it.
  7. bt_scr.png
    bt_scr.png (201.34 KiB) Viewed 9283 times
  8. The gamepad controls cursor on the desktop. We don't need this, we only need it to work in games and emulators. Therefore, we go to the /usr/share/X11/xorg.conf.d/ folder and add the lines in 50-joystick.conf file

    Code: Select all

    Option "StartKeysEnabled" "off"
    Option "StartMouseEnabled" "off"
    Do Menu>>Exit>>Restart graphical server
  9. It's all. I hope everyone will succeed.

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 110 times
Been thanked: 128 times

Re: Connecting a gamepad via bluetooth in Fossapup

Post by 666philb »

Grey wrote: Mon Nov 09, 2020 2:04 am

One of the methods. I did it like this. I connected my faithful 8BitDo M30 gamepad (it can be connected in two ways, both by wire and by bluetooth)

  1. "Menu>>Setup>>Remove builtin packages" and remove "bluez".
  2. Install from PPM "bluez_5.53".
  3. Install from PPM "blueman_2.1.2" (I compiled fresh, but this one is fine too)
  4. Menu>>System>>Bluetooth manager
    If it swears at this point about the absence of a daemon, then write and run script:

    Code: Select all

    #!/bin/sh
    /etc/init.d/bluetooth start
    bluetoothd &
    blueman-manager
  5. Click on the bluetooth icon in the system tray and call up the list of devices.
  6. We search for a device, right-click on it, make it trusted and connect it.
  7. bt_scr.png
  8. The gamepad controls cursor on the desktop. We don't need this, we only need it to work in games and emulators. Therefore, we go to the /usr/share/X11/xorg.conf.d/ folder and add the lines in 50-joystick.conf file

    Code: Select all

    Option "StartKeysEnabled" "off"
    Option "StartMouseEnabled" "off"
    Do Menu>>Exit>>Restart graphical server
  9. It's all. I hope everyone will succeed.

hi @Grey ,
can you test if this can be set up manually using menu>>network>>janky bluetooth
run janky
start bluetooth
and then follow the instructions for pairing and connecting a speaker

if it works i can update the instructions.

also can you test @mistfire 's new bluetooth app viewtopic.php?f=89&t=1135&hilit=mistfire

cheers

User avatar
Grey
Posts: 1426
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 58 times
Been thanked: 201 times

Re: Connecting a gamepad via bluetooth in Fossapup

Post by Grey »

666philb wrote: Mon Nov 09, 2020 6:29 pm

can you test

Yes, I'll check. As soon as joystick is recharged and I will find where I put the bt-dongle :)

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
Grey
Posts: 1426
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 58 times
Been thanked: 201 times

Re: Connecting a gamepad via bluetooth in Fossapup

Post by Grey »

666philb wrote: Mon Nov 09, 2020 6:29 pm

can you test

I was able to connect the gamepad with both Janky and pBluetooth. But I will continue to use Blueman anyway.

In Janky, the "scan on" command works very slow, plus this is simply inconvenient for most users. In addition, there is often error " Failed to connect: org.bluez.Error.InProgress". It is sometimes there and sometimes not. And why in fossapup the default version of bluez is 5.38, because even in the PPM there is version 5.53?

pBluetooth. I didn't install it, just unpacked and run it as a script. It works. But it also sometimes falls into a stupor and then it is necessary to remove and add the device again. Of course, the Bluez may also be to blame. But for now, Blueman seems to be the most stable.

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

Post Reply

Return to “Fossapup64”