Skip to content

Problems with USB Hub in Monitor on Linux

Problems with USB Hub in Monitor on Linux published on

Philips monitor with integrated USB hub has some issues, regularly reset the connection. Linux Mint 22.2 on ThinkPad X1 Carbon 6th.

Final configuration after long discussion with ChatGPT:

  • Thunderbolt BIOS assistand mode enabled in BIOS
  • Grub setting: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.quirks=2109:2817:u"

other settings for quirks:
k → hält den Hub aktiv, auch wenn nichts dranhängt.

o → deaktiviert USB Link Power Management (LPM), oft Ursache für Resets.

u → zwingt auf USB2 (aber das killt bei dir evtl. die Ports).

Slow Firefox On Linux Mint

Slow Firefox On Linux Mint published on

Configs 09 Jan 2024

https://easylinuxtipsproject.blogspot.com/p/firefox.html#ID3
    browser.cache.disk.enable → false
    browser.cache.memory.capacity → 524288 (from -1)

before restart:
file

after restart:
file

did not help yet,

10 Jan 2024

DNS-Prefetching wieder aktiviert (k.a. wieso deaktiviert)

network.dns.disablePrefetch

https://support.mozilla.org/en-US/kb/firefox-cant-load-websites-other-browsers-can

11 Jan 2024

https://linuxconfig.org/firefox-hardware-acceleration-on-linux
file

15 Jan 2024 Upstream Firefox

sudo  ln -s /opt/firefox/firefox /usr/local/bin/firefox

19 Jan 2024 Test Resolution

https://www.reddit.com/r/linuxmint/comments/olcz8g/at_4k_firefox_is_super_slow_on_mint_202/

There is also mentioned about WebRendere Hardware: https://www.ghacks.net/2020/12/14/how-to-find-out-if-webrender-is-enabled-in-firefox-and-how-to-enable-it-if-it-is-not/:
file
changed it to gfx.webrender.all true

389 Directory Server LDAP Commands

389 Directory Server LDAP Commands published on

Password for "Directory Manager" can be found in /etc/dirsrv/setup-ds.inf

Search Directory:

# -W will ask for the password
# cn=config to see the config
ldapsearch -b "cn=config" -D "cn=Directory Manager" -W

# search for Daniel:
ldapsearch -b "uid=jon.doe,ou=People,dc=example,dc=net" -D "cn=Directory Manager" -W

# filter your search, only Group CISO RFC 2254 https://datatracker.ietf.org/doc/html/rfc2254
ldapsearch -b "ou=Groups,dc=example,dc=net" -D "cn=Directory Manager" -W "(& (cn=VSHN CISO) )"

# show ACL / ACI
ldapsearch -LLL -D "cn=Directory Manager" -W -x -b "dc=example,dc=net" -s sub '(aci=*)' aci  

# show all objects in the ldap directory, e.g. if you set up a new an want to see what's in it
ldapsearch -x -D "cn=Directory Manager" -W -x -b "" -s base "(objectclass=*)"
ldapsearch -x -D "cn=Directory Manager" -w $(sed -rn 's/^RootDNPwd = (.*)$/\1/p' /etc/dirsrv/setup-ds.inf) -x -b "" -s base "(objectclass=*)"
ldapsearch -x -D "cn=Directory Manager" -w $(sed -rn 's/^RootDNPwd = (.*)$/\1/p' /etc/dirsrv/setup-ds.inf) -x -b "dc=example,dc=net" "(objectclass=*)"

Some commands from bash history.

lapsearch -D "cn=Directory Manager" -b "cn=schema" -W
ldapsearch "cn=ReplicationAgreement,cn=replica,cn=dc\=example\,dc\=net,cn=mapping tree,cn=config"  -D "cn=admin,cn=config" -W
ldapsearch "cn=changelog5,cn=config"  -D "admin" -W
ldapsearch "cn=changelog5,cn=config"  -D "cn=Directory Manager" -W
ldapsearch "cn=changelog5,cn=config"  -D "cn=admin" -W
ldapsearch "cn=changelog5,cn=config"  -D "cn=admin,cn=config" -W
ldapsearch "cn=config"  -D "cn=Directory Manager" -W
ldapsearch "cn=config"  -D "cn=Directory Manager" -W  -LL
ldapsearch "cn=config"  -D "cn=Directory Manager" -W - -b  "cn=memberOf task, cn=tasks,cn=config"
ldapsearch "cn=config"  -D "cn=Directory Manager" -W - -b cn=config
ldapsearch "cn=config"  -D "cn=Directory Manager" -W - -b cn=config "(objectclass=*)" nsslapd-accesslog-logrotationtime nsslapd-accesslog-logrotationtimeunit nsslapd-accesslog-maxlogsize nsslapd-accesslog-maxlogsperdir
ldapsearch "cn=config"  -D "cn=Directory Manager" -W - -b cn=config "(objectclass=top)"
ldapsearch "cn=config"  -D "cn=Directory Manager" -W - -b cn=config -LLL
ldapsearch "cn=config"  -D "cn=Directory Manager" -W objectClass=ReplicationAgreement -LL
ldapsearch -D "admin" -b "cn=schema" -W
ldapsearch -D "admin" b "cn=schema" -W
ldapsearch -D "cn=Directory Manager" "cn=changelog5,cn=config" -W
ldapsearch -D "cn=Directory Manager" -W -x -b "" -s base "(objectclass=*)" aci
ldapsearch -D "cn=Directory Manager" -W -x -b "ou=Groups,dc=example,dc=net"
ldapsearch -D "cn=directory manager" -b "dc=example,dc=net" "sAMAccountName=Domain Admins" -W -LLL
ldapsearch -D "cn=directory manager" -b "uid=jon.doe,ou=Customers,dc=example,dc=net" -W
ldapsearch -D "cn=directory manager" -b "uid=jon.doe,ou=People,dc=example,dc=net" -W accountUnlockTime retryCountResetTime passwordRetryCount
ldapsearch -LLL -D "cn=Directory Manager" -W -x -b "dc=example,dc=net" nsRole
ldapsearch -LLL -D "cn=Directory Manager" -W -x -b "dc=example,dc=net" nsRole nsRoleDN
ldapsearch -LLL -D "cn=Directory Manager" -W -x -b "dc=example,dc=net" nsRole nsRoleDN nsRoleFilter
ldapsearch -LLL -D "cn=admin,cn=Administrators,cn=config" -W -b "dc=example,dc=net"
ldapsearch -LLL -D "cn=admin,cn=Administrators,cn=config" -W -b "dc=example,dc=net" "(objectclass=*)" aclEntry aclPropagate aclSource  entryOwner ownerPropagate ownerSource
ldapsearch -LLL -D "cn=admin,cn=Administrators,cn=config" -W -b "ou=Groups,ou=TopologyManagement,o=NetscapeRoot"
ldapsearch -LLL -b  "cn=HR,ou=Groups,dc=example,dc=net" -D "cn=Directory Manager" -W  

Create / Rotate SSH Key

Create / Rotate SSH Key published on
  1. Create a new SSH key (set strong Password)
    ssh-keygen -t ed25519 -C "user@host"
  2. by default it's stored in ~/.ssh/id_ed25519 (private key) and ~/.ssh/id_ed25519.pub (public key)
  3. add your public key (not Private !) where you need it, e.g. the following places and remove old ones:
    1. https://github.com/settings/keys
    2. https://gitlab.com/profile/keys

MiPi Camera for Lenovo

MiPi Camera for Lenovo published on

Overview

MIPI "Computer Vision" - does not work, see Arch Linux Wiki.
"Computer Vision" camera doesn't have drivers, but that's the only camera available with OLED 2.8k screen.

Solution

Looks like there could be a solution, mentioned in https://askubuntu.com/a/1461869.

You have to install all 4 repos:

Additional Packages

Additional packages to install

sudo apt install autoconf automake libtool
sudo apt install cmake
sudo apt install ibgstreamer1.0-dev and libgstreamer-plugins-base1.0-dev
sudo apt install alien

Install the RPM in the last repo with sudo alien icamerasrc*

Caveats

  • Ensure to use icamerasrc_slim_api branch on the icamerasrc repo

Final

$ v4l2-ctl --list-devices
ipu6-downstream (PCI:pci:pci0000:00):
    /dev/video0
    /dev/video1
    /dev/video2
    /dev/video3
    /dev/video4
    /dev/video5
    /dev/video6
    /dev/video7

ipu6-downstream (pci:pci0000:00):
    /dev/media0

Make Shutter the Default Screenshot Application on Linux Mint

Make Shutter the Default Screenshot Application on Linux Mint published on
  1. Install it with sudo apt install shutter
  2. Make shutter start on login within shutter go to Edit > Preferences >Behavior and choose "Start Shutter at login" on the top
  3. Create custom shortcuts, open the Keyboard preferences via start menu and add three custom shortcuts:
    • Shutter Screenshot Select Area: shutter -s, shift-ctrl-print
    • Shutter Screenshot Window: shutter -w, ctrl-print
    • Shutter Fullscreen: shutter -f, prin

Edit 2023-12-07

Shutter has some problems lately when connected to thunderbolt dock. It leads to a black screen. I suspect 4k on my laptop together with x11.

Changed to an alternatvie, flaemshot.

To use it with printscreen follow https://flameshot.org/docs/guide/key-bindings/#on-ubuntu-and-other-gnome-based-distros and use flameshot gui as command.

Check out /usr/bin/flameshot --help.

If it flickers when taking the screenshot, it could be because of fractional scaling. Happened on a USB3 dock, probably related to https://github.com/flameshot-org/flameshot/issues/564.
Solved it with changing to 175% instead of 150%.