Sunday, July 4, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


How to capture users commands as logs with date, time, username, command in Linux

Posted: 04 Jul 2021 09:26 AM PDT

Have to capture as logs for user commands in CentOS and RHEL

How to loop over every character of a filename?

Posted: 04 Jul 2021 09:16 AM PDT

So, I've a simple nested loop where the outer for loops over all the files in a directory and the inner for loops over all characters of these filenames.

#!/bin/bash    if [ $# -lt 1 ]  then          echo "Please provide an argument"          exit  fi    for file in `ls $1`  do          for ch in $file          do                  echo $ch          done  done  

The script above doesn't work. The inner loop doesn't loop over all the characters in the filename but instead loops over the entire thing.

Why GVim doesn't use dark theme?

Posted: 04 Jul 2021 08:52 AM PDT

I want to make the interface of GVim to use dark theme. I have the following line in my ~/.config/gtk-3.0/settings.ini:

[Settings]  gtk-application-prefer-dark-theme=1  

All my GTK apps use dark theme but for some reason GVim still uses a light theme. How can I change that?

Note: When I run gvim --version the following line is in the result: Huge version with GTK3 GUI. So I'm sure it's using GTK3.

FreeBSD gets stuck when booting

Posted: 04 Jul 2021 07:30 AM PDT

So last night I downloaded the x-zipped FreeBSD version labeled disc1 from here and left my MacBook running Big-Sur on overnight. The next day, I opened up a terminal and typed qemu-system-ppc64 -cdrom FreeBSD-13.0-RELEASE-powerpc-powerpc64-disc1.iso -hda idk_disk (idk_disk is a blank disk created with qemu-img create idk_disk 5g). The system looked fine, but it then got stuck at Kernel entry at 0x100630 as seen in the image below. It has been stuck on this line for about 20 minutes. I have no idea how to fix this.A screenshot of QEMU where it gets stuck on the line Kernel entry at 0x100630

Having an interactive shell experience but running everything through dash

Posted: 04 Jul 2021 07:48 AM PDT

So im starting to get addicted POSIX standarts and simplicity yet i hate not having autocomplete using the arrows to go through characters and i want a cool shell prompt so is there anyway i have something like fish or Zsh or even bash on the frontend so i can have autocomplete, a nice and informative prompt, being able to go foward and backwards on the command with arrows but when i press enter the command itself is ran by Dash instead of the interactive thing unless the script requires bash fish or etc in the shebang

i just want to feel confortable when typing the command the rest can be harsh and simple im using Konsole although im thinking to changing to a console prompt that allows Überzug(yes im aware that GUI's exist for a reason, its just for LF)also forgot although sh redirects to dash on konsole i told it to go for bash

Can't transfer files from linux to window using scp?

Posted: 04 Jul 2021 06:58 AM PDT

I read many similar questions on stackoverflow and StackExchange. But I still failed to use scp to transfer files from linux to window.

scp -r need_transfer_dir -P port username@ip:destination_directory  
  1. First, I used scp to transfer files from window to linux, it was successful.
  2. I have also succeeded in transferring files from this linux server to other linux servers.
  3. I can use Xftp to successfully exchange files on my windows computer and linux server, but I have to open the Xftp software every time, and I want to use scp command line to transfer files.
  4. I transfer files from the linux server to my windows computer, but after various attempts, I have not succeeded.

I don't know which step has the problem

The process I tried is as follows: 1.I check the ip address of my windows computer. Open cmd. Type ipconfig enter image description here So my ip address is the line beginning with 10. in the figure().

  1. I check my username. But I don't know how to find it on the window. I tried the following methods. (1). Open cmd. Type whoami the result is : desktop-7l9s7rg\user (2) Open git Bash. Type whoami the result is : User (3) Open the account settings of the window account, as shown in the figure below, my email is displayed. enter image description here

  2. I tried the following command line.

    scp -P 22  -r diff_work  User@10.1.30.253:/c:/      scp -P 22  -r diff_work  desktop-7l9s7rg\user@10.1.30.253:/c:/      scp -P 22  -r diff_work  my_email@10.1.30.253:/c:/            scp -r diff_work  User@10.1.30.253:/c:/      scp -r diff_work  desktop-7l9s7rg\user@10.1.30.253:/c:/      scp -r diff_work  my_email\user@10.1.30.253:/c:/  

But none of them worked. Can anyone help me see what went wrong. Or how to find the error? thank you very much!

kubernetes network interfaces in the settings

Posted: 04 Jul 2021 06:14 AM PDT

I've recently been studying docker, kubernetes and dev-ops stuff and also started some online courses..

I am using elementary OS 5.1 and installed docker and microk8s.. but after following some stuff on the courses i noticed my network settings got messed up with bunch of network interfaces.

how do i get rid of these?

flooded network interface

Mount multiple volumes by label without repeating the command?

Posted: 04 Jul 2021 09:21 AM PDT

I have this on-liner: diskutil mount VOL1 && diskutil mount VOL2 && diskutil mount VOL3

But I would like to not repeat the command 'diskutil mount' with an in-line array. I am trying to find a solution in the style of: diskutil mount {VOL1,VOL2,Vol3}

And how is this written with xargs?

How can I convince NetworkManager to accept my configuration?

Posted: 04 Jul 2021 06:59 AM PDT

This is Debian Buster. I need NetworkManager in order to run OpenShift.

My main interface is plugged in a Linuxbridge br1, which is configured in /etc/network/interfaces:

auto br1  iface br1 inet static  bridge_ports eno1  address 192.168.1.27  netmask 255.255.255.0  gateway 192.168.1.1  dns-nameservers 192.168.1.16, 1.1.1.1  

According to the documentation, NetworkManager should leave br1 alone. When I installed NetworkManager, a message to this effect was even displayed. However, br1 is managed by NM. I can probably live with this, but wonder why documentation and reality differ.

Next, NM sets the nameserver in /etc/resolv.conf to 127.0.0.1. I tried to change that with nmcli c mod br1 ipv4.dns 192.168.1.16. The journal confirms using nameserver 192.168.1.16#53(via br1), but /etc/resolv.conf is still set to 127.0.0.1. I also set dns=none in /etc/NetworkManager/NetworkManager.conf, but to no avail. Yes, I did restart the service.

Any tips what I should do to correctly set the nameserver, and convince NetworkManager that it should not manage the bridge?

Change Konsole keymapping for resizing text

Posted: 04 Jul 2021 05:50 AM PDT

I'm using Manjaro KDE and I was trying to change the keymapping for resizing text on the Konsole terminal from the default Ctrl+Num to Ctrl+Shift+Num, to avoid collisions with Vim keymappings.

But when I try to set increase text size to Ctrl+Shift+Num+ it doesn't get the Shift key and instead sets it to just Ctrl+Num+.

I'm using Spanish layout with the Generic 105-key (QWERTY).

Edit: When I first hold the combination it detects both Ctrl+Num+ and Ctrl+Shift+Num+, but when I release them it chooses the wrong one.

Edit2: I add a capture of the moment when it detects both combinations:

Capture of Konsole keymappings

ffmpeg produces only noise when decoding ac3 audio on debian buster

Posted: 04 Jul 2021 04:57 AM PDT

Since doing a fresh install of debian buster I have problems with the sound of video files with ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s audio:

  • Converting the mts video gives me a video with silent audio stream with only rare random noise
  • Using the mp2 audio stream of the mts instead works as expected
  • Playing the mts video in openshot (which seems to use ffmpeg internally) gives wild noise with almost no relation to the correct audio stream
  • vlc can play all audio streams of the video without problems
  • The output doesn't show any obvious errors or warnings

The configuration is unmodified buster configuration:

ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers    built with gcc 8 (Debian 8.3.0-6)    configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared    libavutil      56. 22.100 / 56. 22.100    libavcodec     58. 35.100 / 58. 35.100    libavformat    58. 20.100 / 58. 20.100    libavdevice    58.  5.100 / 58.  5.100    libavfilter     7. 40.101 /  7. 40.101    libavresample   4.  0.  0 /  4.  0.  0    libswscale      5.  3.100 /  5.  3.100    libswresample   3.  3.100 /  3.  3.100    libpostproc    55.  3.100 / 55.  3.100  

How to find out what goes wrong?

What language do config files use?

Posted: 04 Jul 2021 05:37 AM PDT

I've been using GNU/Linux for over a year now. And there's this question to which I need an answer from you, Linux gurus:

What language(s) do config files like .bashrc, .vimrc, .i3status.conf, .conkyrc, .xinitrc, etc. use?

sudo for specific commands without password doesn't work

Posted: 04 Jul 2021 04:57 AM PDT

I really tried to find a solution before posting here, however I couldn't find any.

I tried to allow a specific user to run apt update and apt upgrade for a without entering his password, so I did a sudo visudo and edited the line for this user:

user ALL=(ALL) NOPASSWD: /usr/bin/apt update /usr/bin/apt upgrade  

sudo -l gives me the following output:

User user may run the following commands on machine:      (ALL : ALL) ALL      (ALL) NOPASSWD: /usr/bin/apt update /usr/bin/apt upgrade  

What am I missing? Just allow ALL is no option. The order should be fine. Any help much appreciated.

How do reset Debian 10.9 root and login password?

Posted: 04 Jul 2021 05:42 AM PDT

I'm currently using Debian 10.9 buster release with gnome 3.30.2

I forgot my login and root password but I've had auto-login enabled i.e., I'm automatically logged in after a reboot or power on but, I'm unable to perform admin tasks / tasks related to sudo command.

So to reset my password, most of the ways I know of, need sudo previliges and the one way which doesn't involve any use of gnome session terminal is through the use of advanced settings from grub menu but as you can see, my grub disappears in just a flash ( inferring from the grub config below) i.e., grub is hidden and the timeout is zero, precluding me from accessing advanced settings via grub and ironically, I need sudo previliges to reconfig my grub

My grub config looks something like this -

# If you change this file, run 'update-grub' afterwards to update  # /boot/grub/grub.cfg.  # For full documentation of the options in this file, see:  #   info -f grub -n 'Simple configuration'    GRUB_DEFAULT=0  GRUB_TIMEOUT=0  GRUB_HIDDEN_TIMEOUT=0  GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`  GRUB_CMDLINE_LINUX_DEFAULT="quiet"  GRUB_CMDLINE_LINUX=""    # Uncomment to enable BadRAM filtering, modify to suit your needs  # This works with Linux (no patch required) and with any kernel that obtains  # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)  #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"    # Uncomment to disable graphical terminal (grub-pc only)  #GRUB_TERMINAL=console    # The resolution used on graphical terminal  # note that you can use only modes which your graphic card supports via VBE  # you can see them in real GRUB with the command `vbeinfo'  #GRUB_GFXMODE=640x480    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux  #GRUB_DISABLE_LINUX_UUID=true    # Uncomment to disable generation of recovery mode menu entries  #GRUB_DISABLE_RECOVERY="true"    

Is there a way out of this predicament ?

I need this issue to be resolved asap, since I've got glut of (incomplete) work to complete.

Symlinks in a path pointing to another drive block `ls`

Posted: 04 Jul 2021 06:30 AM PDT

I recently took out some specific directories from my /home directory and put them on an external hard drive that is mounted on another path (/mnt).

Inside my home directory I have created symlinks to some of the old directories in order to access them seamlessly (for instance, I moved my ~/media/music to /mnt/media/music).

Now, if I cd into a directory that contains one of these symlinks (for instance, I created a symlink for /mnt/media/music into ~/media/) and then I issue an ls command, the external hard drive starts spinning and the output of ls is blocked until some data (don't know what) is read from the disk (I suppose, since the spinning).

I was wondering the reason for which it happens. It doesn't seem to be necessary to load anything from the external hard drive just to show the symlink (cding into the symlink and then ls is another thing, though it's not what I'm referring to here). So why does this happen?

Thanks in advance

Device-Specific Behaviors in PulseAudio

Posted: 04 Jul 2021 09:24 AM PDT

I'm running PulseAudio on Xubuntu 20.04. I have three audio devices that we'll just call Device A, Device B, and Device C. All three have a mic and an audio out option, and they all show up correctly under Input Devices and Output Devices when plugged in.

However, I would like PulseAudio to switch to some devices but not others when they're plugged in. Essentially, here's what I'm looking for:

  • Device A gets plugged in -> PulseAudio automatically switches to it for both Input and Output Devices.
  • Device B gets plugged in -> PulseAudio lists it but does not switch to it
  • Device C gets plugged in -> PulseAudio automatically switches to it for the Output Device but not the Input Device.

Is there a way to accomplish what I want? It seems like the only options under PulseAudio are to always switch to a new device when plugged in or never switch to it, and I want something in between.

EDIT: If I set a default device in PulseAudio, is it possible to then tell PulseAudio "switch to the default device when it's plugged in, but don't switch away when something else is plugged in afterward"?

My RF wireless keyboard keeps sending XF86Forward KeyPress and KeyRelease events to the system after each keypress/keyrelease I do

Posted: 04 Jul 2021 09:57 AM PDT

After one fall, my RF wireless keyboard keeps sending XF86Forward KeyPress and KeyRelease events to the system after each keypress/keyrelease I do :

$ xev -event keyboard | egrep -w "KeyPress|KeyRelease|keycode"  KeyRelease event, serial 34, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyPress event, serial 37, synthetic NO, window 0x3c00001,      state 0x10, keycode 24 (keysym 0x61, a), same_screen YES,  KeyPress event, serial 37, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyRelease event, serial 38, synthetic NO, window 0x3c00001,      state 0x10, keycode 24 (keysym 0x61, a), same_screen YES,  KeyRelease event, serial 39, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyPress event, serial 311, synthetic NO, window 0x3c00001,      state 0x10, keycode 56 (keysym 0x62, b), same_screen YES,  KeyPress event, serial 312, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyRelease event, serial 312, synthetic NO, window 0x3c00001,      state 0x10, keycode 56 (keysym 0x62, b), same_screen YES,  KeyRelease event, serial 313, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyPress event, serial 313, synthetic NO, window 0x3c00001,      state 0x10, keycode 54 (keysym 0x63, c), same_screen YES,  KeyPress event, serial 313, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyRelease event, serial 314, synthetic NO, window 0x3c00001,      state 0x10, keycode 54 (keysym 0x63, c), same_screen YES,  KeyRelease event, serial 315, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyPress event, serial 315, synthetic NO, window 0x3c00001,      state 0x10, keycode 40 (keysym 0x64, d), same_screen YES,  KeyPress event, serial 315, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  KeyRelease event, serial 316, synthetic NO, window 0x3c00001,      state 0x10, keycode 40 (keysym 0x64, d), same_screen YES,  KeyRelease event, serial 317, synthetic NO, window 0x3c00001,      state 0x10, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES,  

Because of this, I'm unable to log on to my tty[1-6] consoles because each character I type gets a ^@ character appended to it.

EDIT0 : According to /proc/bus/input/devices I have 2 /dev/input/eventX entries for my RAPOO wireless keyboard+mouse combo :

$ cat /proc/bus/input/devices  | grep -P '^[NH]: ' | paste - - | grep RAPOO  N: Name="RAPOO RAPOO 5G Wireless Device"    H: Handlers=sysrq kbd event2 leds   N: Name="RAPOO RAPOO 5G Wireless Device"    H: Handlers=kbd mouse0 event3   

EDIT1 : According to the Handlers value above /dev/input/event2 seems to receive events from the keyboard alone. Here's an evtest output for that device :

$ sudo evtest /dev/input/event2  Input driver version is 1.0.1  Input device ID: bus 0x3 vendor 0x24ae product 0x2003 version 0x110  Input device name: "RAPOO RAPOO 5G Wireless Device"  Supported events:    Event type 0 (EV_SYN)    Event type 1 (EV_KEY)      Event code 1 (KEY_ESC)      Event code 2 (KEY_1)      Event code 3 (KEY_2)      Event code 4 (KEY_3)      Event code 5 (KEY_4)      Event code 6 (KEY_5)      Event code 7 (KEY_6)      Event code 8 (KEY_7)      Event code 9 (KEY_8)      Event code 10 (KEY_9)      Event code 11 (KEY_0)      Event code 12 (KEY_MINUS)      Event code 13 (KEY_EQUAL)      Event code 14 (KEY_BACKSPACE)      Event code 15 (KEY_TAB)      Event code 16 (KEY_Q)      Event code 17 (KEY_W)      Event code 18 (KEY_E)      Event code 19 (KEY_R)      Event code 20 (KEY_T)      Event code 21 (KEY_Y)      Event code 22 (KEY_U)      Event code 23 (KEY_I)      Event code 24 (KEY_O)      Event code 25 (KEY_P)      Event code 26 (KEY_LEFTBRACE)      Event code 27 (KEY_RIGHTBRACE)      Event code 28 (KEY_ENTER)      Event code 29 (KEY_LEFTCTRL)      Event code 30 (KEY_A)      Event code 31 (KEY_S)      Event code 32 (KEY_D)      Event code 33 (KEY_F)      Event code 34 (KEY_G)      Event code 35 (KEY_H)      Event code 36 (KEY_J)      Event code 37 (KEY_K)      Event code 38 (KEY_L)      Event code 39 (KEY_SEMICOLON)      Event code 40 (KEY_APOSTROPHE)      Event code 41 (KEY_GRAVE)      Event code 42 (KEY_LEFTSHIFT)      Event code 43 (KEY_BACKSLASH)      Event code 44 (KEY_Z)      Event code 45 (KEY_X)      Event code 46 (KEY_C)      Event code 47 (KEY_V)      Event code 48 (KEY_B)      Event code 49 (KEY_N)      Event code 50 (KEY_M)      Event code 51 (KEY_COMMA)      Event code 52 (KEY_DOT)      Event code 53 (KEY_SLASH)      Event code 54 (KEY_RIGHTSHIFT)      Event code 55 (KEY_KPASTERISK)      Event code 56 (KEY_LEFTALT)      Event code 57 (KEY_SPACE)      Event code 58 (KEY_CAPSLOCK)      Event code 59 (KEY_F1)      Event code 60 (KEY_F2)      Event code 61 (KEY_F3)      Event code 62 (KEY_F4)      Event code 63 (KEY_F5)      Event code 64 (KEY_F6)      Event code 65 (KEY_F7)      Event code 66 (KEY_F8)      Event code 67 (KEY_F9)      Event code 68 (KEY_F10)      Event code 69 (KEY_NUMLOCK)      Event code 70 (KEY_SCROLLLOCK)      Event code 71 (KEY_KP7)      Event code 72 (KEY_KP8)      Event code 73 (KEY_KP9)      Event code 74 (KEY_KPMINUS)      Event code 75 (KEY_KP4)      Event code 76 (KEY_KP5)      Event code 77 (KEY_KP6)      Event code 78 (KEY_KPPLUS)      Event code 79 (KEY_KP1)      Event code 80 (KEY_KP2)      Event code 81 (KEY_KP3)      Event code 82 (KEY_KP0)      Event code 83 (KEY_KPDOT)      Event code 85 (KEY_ZENKAKUHANKAKU)      Event code 86 (KEY_102ND)      Event code 87 (KEY_F11)      Event code 88 (KEY_F12)      Event code 89 (KEY_RO)      Event code 90 (KEY_KATAKANA)      Event code 91 (KEY_HIRAGANA)      Event code 92 (KEY_HENKAN)      Event code 93 (KEY_KATAKANAHIRAGANA)      Event code 94 (KEY_MUHENKAN)      Event code 95 (KEY_KPJPCOMMA)      Event code 96 (KEY_KPENTER)      Event code 97 (KEY_RIGHTCTRL)      Event code 98 (KEY_KPSLASH)      Event code 99 (KEY_SYSRQ)      Event code 100 (KEY_RIGHTALT)      Event code 102 (KEY_HOME)      Event code 103 (KEY_UP)      Event code 104 (KEY_PAGEUP)      Event code 105 (KEY_LEFT)      Event code 106 (KEY_RIGHT)      Event code 107 (KEY_END)      Event code 108 (KEY_DOWN)      Event code 109 (KEY_PAGEDOWN)      Event code 110 (KEY_INSERT)      Event code 111 (KEY_DELETE)      Event code 113 (KEY_MUTE)      Event code 114 (KEY_VOLUMEDOWN)      Event code 115 (KEY_VOLUMEUP)      Event code 116 (KEY_POWER)      Event code 117 (KEY_KPEQUAL)      Event code 119 (KEY_PAUSE)      Event code 121 (KEY_KPCOMMA)      Event code 122 (KEY_HANGUEL)      Event code 123 (KEY_HANJA)      Event code 124 (KEY_YEN)      Event code 125 (KEY_LEFTMETA)      Event code 126 (KEY_RIGHTMETA)      Event code 127 (KEY_COMPOSE)      Event code 128 (KEY_STOP)      Event code 129 (KEY_AGAIN)      Event code 130 (KEY_PROPS)      Event code 131 (KEY_UNDO)      Event code 132 (KEY_FRONT)      Event code 133 (KEY_COPY)      Event code 134 (KEY_OPEN)      Event code 135 (KEY_PASTE)      Event code 136 (KEY_FIND)      Event code 137 (KEY_CUT)      Event code 138 (KEY_HELP)      Event code 140 (KEY_CALC)      Event code 142 (KEY_SLEEP)      Event code 150 (KEY_WWW)      Event code 152 (KEY_SCREENLOCK)      Event code 158 (KEY_BACK)      Event code 159 (KEY_FORWARD)      Event code 161 (KEY_EJECTCD)      Event code 163 (KEY_NEXTSONG)      Event code 164 (KEY_PLAYPAUSE)      Event code 165 (KEY_PREVIOUSSONG)      Event code 166 (KEY_STOPCD)      Event code 173 (KEY_REFRESH)      Event code 176 (KEY_EDIT)      Event code 177 (KEY_SCROLLUP)      Event code 178 (KEY_SCROLLDOWN)      Event code 179 (KEY_KPLEFTPAREN)      Event code 180 (KEY_KPRIGHTPAREN)      Event code 183 (KEY_F13)      Event code 184 (KEY_F14)      Event code 185 (KEY_F15)      Event code 186 (KEY_F16)      Event code 187 (KEY_F17)      Event code 188 (KEY_F18)      Event code 189 (KEY_F19)      Event code 190 (KEY_F20)      Event code 191 (KEY_F21)      Event code 192 (KEY_F22)      Event code 193 (KEY_F23)      Event code 194 (KEY_F24)      Event code 240 (KEY_UNKNOWN)    Event type 4 (EV_MSC)      Event code 4 (MSC_SCAN)    Event type 17 (EV_LED)      Event code 0 (LED_NUML) state 0      Event code 1 (LED_CAPSL) state 0      Event code 2 (LED_SCROLLL) state 0      Event code 3 (LED_COMPOSE) state 0      Event code 4 (LED_KANA) state 0  Key repeat handling:    Repeat type 20 (EV_REP)      Repeat code 0 (REP_DELAY)        Value    250      Repeat code 1 (REP_PERIOD)        Value     33  Properties:  Testing ... (interrupt to exit)  Event: time 1625417787.379951, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70058  Event: time 1625417787.379951, type 1 (EV_KEY), code 96 (KEY_KPENTER), value 0  Event: time 1625417787.379951, -------------- SYN_REPORT ------------  Event: time 1625417794.923958, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70004  Event: time 1625417794.923958, type 1 (EV_KEY), code 30 (KEY_A), value 1  Event: time 1625417794.923958, -------------- SYN_REPORT ------------  qEvent: time 1625417795.051954, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70004  Event: time 1625417795.051954, type 1 (EV_KEY), code 30 (KEY_A), value 0  Event: time 1625417795.051954, -------------- SYN_REPORT ------------  Event: time 1625417797.083970, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70005  Event: time 1625417797.083970, type 1 (EV_KEY), code 48 (KEY_B), value 1  Event: time 1625417797.083970, -------------- SYN_REPORT ------------  bEvent: time 1625417797.187973, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70005  Event: time 1625417797.187973, type 1 (EV_KEY), code 48 (KEY_B), value 0  Event: time 1625417797.187973, -------------- SYN_REPORT ------------  Event: time 1625417798.363970, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006  Event: time 1625417798.363970, type 1 (EV_KEY), code 46 (KEY_C), value 1  Event: time 1625417798.363970, -------------- SYN_REPORT ------------  cEvent: time 1625417798.459960, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006  Event: time 1625417798.459960, type 1 (EV_KEY), code 46 (KEY_C), value 0  Event: time 1625417798.459960, -------------- SYN_REPORT ------------  Event: time 1625417799.195958, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70007  Event: time 1625417799.195958, type 1 (EV_KEY), code 32 (KEY_D), value 1  Event: time 1625417799.195958, -------------- SYN_REPORT ------------  dEvent: time 1625417799.259976, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70007  Event: time 1625417799.259976, type 1 (EV_KEY), code 32 (KEY_D), value 0  Event: time 1625417799.259976, -------------- SYN_REPORT ------------  Event: time 1625417801.379970, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0  Event: time 1625417801.379970, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1  Event: time 1625417801.379970, -------------- SYN_REPORT ------------  Event: time 1625417801.587964, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006  Event: time 1625417801.587964, type 1 (EV_KEY), code 46 (KEY_C), value 1  Event: time 1625417801.587964, -------------- SYN_REPORT ------------  

How can I stop my RF keyboard from sending those XF86Forward KeyPress and KeyRelease events ?

How to make the Python3 interpreter faster or the fastest possible?

Posted: 04 Jul 2021 09:26 AM PDT

As the title says, how to make the python3 interpreter which executes python programs; faster or even the fastest possible using the vanilla CPython versions available at www.python.org; in any linux distribution?

Is there a way to make it even faster than the default "--enable-optimizations" compiler flag?

Which compiler to use to achieve the goal?

What supportive benchmarks to corroborate assertions on compiler choice?

ssh jump host option for some reason does not work

Posted: 04 Jul 2021 05:54 AM PDT

I'm trying to utilize ssh's jump host option but for some reason it does not work, I get:

user@user-notebook /e/ssh [255]> ssh -J user1@host1 user2@target  kex_exchange_identification: banner line contains invalid characters  banner exchange: Connection to UNKNOWN port 65535: invalid format  user@user-notebook /e/ssh [1|1]> ssh -J user1@host1:22 user2@target:22  channel 0: open failed: connect failed: Name or service not known  stdio forwarding failed  kex_exchange_identification: Connection closed by remote host  Connection closed by UNKNOWN port 65535  

and I'm wondering why, I can login over ssh from user-notebook to host1 and then from host1 to target just fine. I have all keys setup too. I'm puzzled, what am I missing?

After adding -v, I can observe the following:

debug1: kex_exchange_identification: banner line 39: \033[?25h\033[?7hSSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3  kex_exchange_identification: banner line contains invalid characters  banner exchange: Connection to UNKNOWN port 65535: invalid format  debug1: channel 0: free: direct-tcpip: listening port 0 for target port 22, connect from 127.0.0.1 port 65535 to UNKNOWN port 65536, nchannels 1  debug1: fd 0 clearing O_NONBLOCK  Killed by signal 1.  

Note that I can connect fine to target with ssh -J user1@host1 user2@target from other hosts on the LAN but only this one doesn't seem to be able to connect.

When I change the line to ssh -J user1@host1:22 user2@target:22 -v, I get the following:

debug1: client_input_hostkeys: no new or deprecated keys from server  debug1: Remote: /home/user1/.ssh/authorized_keys:3: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding  debug1: Remote: /home/user1/.ssh/authorized_keys:3: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding  channel 0: open failed: connect failed: Name or service not known  stdio forwarding failed  kex_exchange_identification: Connection closed by remote host  Connection closed by UNKNOWN port 65535  

What is it trying to do with port 65535? I also ssh-ed to host1 and did a:

netcat target 22  SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3  

Is something wrong with my Puppy Linux installation?

Posted: 04 Jul 2021 05:58 AM PDT

I've just installed bionicpup64-8.0-uefi.iso on VirtualBox.

enter image description here

Now there's something that's bothering me: the installation option is still there. Please explain. :)

Trick a window that it has focus in kde

Posted: 04 Jul 2021 07:54 AM PDT

Is it possible to make a window believe that it has a focus while it has not?

My use case description: I am playing a game named Detroit Become Human. I am playing with gamepad. The game is actually an interactive movie. It has a very complicated flowcharts. I want to see other scenes that I missed after my original walkthrough. I am reading the walkthrough guide in a browser and switching to game very often and want to see flowchart in a game. Because the flowcharts are very complicated, I need to keep lots of tabs in browser, constantly scroll pages up and down trying to read descriptions for some nodes. And I get really annoyed that I constantly need to refocus a game itself to be able to control it (even with gamepad) and press alt+tab to release mouse from the game. Also, the game makes me rewatching lots of scenes that I already have seen and I want to do some other readings while such scenes are playing. Also, there are scenes with minor interactions, but still I need to focus a game window for them.

I wanted to make it easier. I want the game to be controllable by gamepad while its window not in focus. I thought that I need to capture a gamepad input and redirect it to inactive window. And that thing was what I wanted originally to ask. However, I have noticed, that chromium while not in focus is still able to see the gamepad input by using this web site: https://gamepad-tester.com/. This means (as I think) that all windows have access to the gamepad input.

Now I think that the problem is the game itself. I think it checks if it is in focus, and if not, it do not interprets the input.

I want the game to always interpret gamepad, even when missing focus. Is that possible?

My system details:
Arch Linux.
Game launched via steam.
Tried with Steam Input and without it.
KDE Plasma.
Logitech F710 Gamepad in XInput mode.
The game launched in borderless window mode, also tried fullscreen and windowed.

Additional info.
This trick may be useful not only for games (which often pauses when not in focus), but also for applications. For example, DaVinci Resolve hides a window with effects parameters. I am watching a tutorial video on youtube in browser. When I focus a browser, I cannot see my parameters window to compare it with such on a youtube. Tricking the DaVinci Resolve that it has focus (while still disabling keyboard input for it) may solve this.

can not start trousers service - giving error 'TrouSerS ioctl: (25) Inappropriate ioctl for device'

Posted: 04 Jul 2021 09:59 AM PDT

I have enabled TPM 2.0 using bios.

$ [ -c /dev/tpmrm0 ] && echo "TPM 2.0"  TPM 2.0  

When I am trying to install tpm-tools, it is giving the following error:

% sudo apt install tpm-tools  Reading package lists... Done  Building dependency tree  Reading state information... Done  tpm-tools is already the newest version (1.3.9.1-0.2ubuntu3).  0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.  2 not fully installed or removed.  After this operation, 0 B of additional disk space will be used.  Do you want to continue? [Y/n] Y  Setting up trousers (0.3.14+fixed1-1build1) ...  Job for trousers.service failed because the control process exited with error code.  See "systemctl status trousers.service" and "journalctl -xe" for details.  invoke-rc.d: initscript trousers, action "start" failed.  ● trousers.service - LSB: starts tcsd       Loaded: loaded (/etc/init.d/trousers; generated)       Active: failed (Result: exit-code) since Wed 2021-02-10 03:59:26 AEST; 3ms ago         Docs: man:systemd-sysv-generator(8)      Process: 7414 ExecStart=/etc/init.d/trousers start (code=exited, status=30)    Feb 10 03:59:26 blueray-i5 systemd[1]: Starting LSB: starts tcsd...  Feb 10 03:59:26 blueray-i5 trousers[7414]:  * Starting Trusted Computing daemon tcsd  Feb 10 03:59:26 blueray-i5 trousers[7414]: /etc/init.d/trousers: 32: [: /dev/tpm0: unexpected operator  Feb 10 03:59:26 blueray-i5 tcsd[7420]: TCSD TDDL[7420]: TrouSerS ioctl: (25) Inappropriate ioctl for device  Feb 10 03:59:26 blueray-i5 tcsd[7420]: TCSD TDDL[7420]: TrouSerS Falling back to Read/Write device support.  Feb 10 03:59:26 blueray-i5 tcsd[7420]: TCSD TCS[7420]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1e  Feb 10 03:59:26 blueray-i5 trousers[7414]:    ...fail!  Feb 10 03:59:26 blueray-i5 systemd[1]: trousers.service: Control process exited, code=exited, status=30/n/a  Feb 10 03:59:26 blueray-i5 systemd[1]: trousers.service: Failed with result 'exit-code'.  Feb 10 03:59:26 blueray-i5 systemd[1]: Failed to start LSB: starts tcsd.  dpkg: error processing package trousers (--configure):   installed trousers package post-installation script subprocess returned error exit status 1  dpkg: dependency problems prevent configuration of tpm-tools:   tpm-tools depends on trousers; however:    Package trousers is not configured yet.    dpkg: error processing package tpm-tools (--configure):   dependency problems - leaving unconfigured  Errors were encountered while processing:   trousers   tpm-tools  E: Sub-process /usr/bin/dpkg returned an error code (1)  

So, I tried to start trousers service. It is giving the following message:

    % systemctl start trousers.service      Job for trousers.service failed because the control process exited with error code.      See "systemctl status trousers.service" and "journalctl -xe" for details.      % systemctl status trousers.service      ● trousers.service - LSB: starts tcsd           Loaded: loaded (/etc/init.d/trousers; generated)           Active: failed (Result: exit-code) since Wed 2021-02-10 04:04:56 AEST; 23s ago             Docs: man:systemd-sysv-generator(8)          Process: 9114 ExecStart=/etc/init.d/trousers start (code=exited, status=30)            Feb 10 04:04:56 blueray-i5 systemd[1]: Starting LSB: starts tcsd...      Feb 10 04:04:56 blueray-i5 trousers[9114]:  * Starting Trusted Computing daemon tcsd      Feb 10 04:04:56 blueray-i5 trousers[9114]: /etc/init.d/trousers: 32: [: /dev/tpm0: unexpected operator      Feb 10 04:04:56 blueray-i5 tcsd[9120]: TCSD TDDL[9120]: TrouSerS ioctl: (25) Inappropriate ioctl for device      Feb 10 04:04:56 blueray-i5 tcsd[9120]: TCSD TDDL[9120]: TrouSerS Falling back to Read/Write device support.      Feb 10 04:04:56 blueray-i5 tcsd[9120]: TCSD TCS[9120]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1e      Feb 10 04:04:56 blueray-i5 trousers[9114]:    ...fail!      Feb 10 04:04:56 blueray-i5 systemd[1]: trousers.service: Control process exited, code=exited, status=30/n/a      Feb 10 04:04:56 blueray-i5 systemd[1]: trousers.service: Failed with result 'exit-code'.      Feb 10 04:04:56 blueray-i5 systemd[1]: Failed to start LSB: starts tcsd.  

What can I do?

Remount all filesystems in fstab with new options

Posted: 04 Jul 2021 07:00 AM PDT

The mount -a command disregards mount options, which makes it useless when that's what you changed.

How to re-evaluate all the mount options in fstab as if rebooting?

Can't set mp3 sample rate to 44.1k using sox

Posted: 04 Jul 2021 10:01 AM PDT

I am trying to overlay two files (merge them into one so they plat simultaneously).

The options for sox --combine are sequence, concatenate, mix, mix-power, merge, and multiply. I've looked at the docs here and it's not entirely evident which I should use. sequence and concatenate do work when they have different sample rates but it does not overlay them.

I am trying to use mix, but it's not allowing me to set the sample rate to 41k (which from my understanding is the correct one for mp3):

To precaution against different sample rates, I'm looping through the input files and setting all their sample rates to 41k. I have the following code to do this:

sox -r 44.1k input1.mp3 output1.mp3  sox -r 44.1k input2.mp3 output2.mp3  

I get this (it differs between files)

sox WARN formats: can't set sample rate 44100; using 24000  sox WARN formats: can't set sample rate 44100; using 48000  

Then when I try and overlay them using the following command:

sox --combine mix output1.mp3 output2.mp3 output3.mp3   

I see this:

sox FAIL sox: Input files must have the same sample-rate  

I am on Ubuntu 16.04.

As a workaround I'm using the ffmpeg command shown here: https://stackoverflow.com/questions/14498539/how-to-overlay-two-audio-files-using-ffmpeg

This is actually fine for me and gets the job done though I would be curious to know why the sox didn't work.

How to move empty disc space between partitions

Posted: 04 Jul 2021 09:04 AM PDT

I want to move an empty disc space from one partition to another. Is this possible?

In the below image, I have free space under /local (/dev/sda3). I want to allocate this space to / which is on /dev/sda2.

How can I do this?

lsblk output

Debian8(jessie) doesn't detect bluetooth

Posted: 04 Jul 2021 06:03 AM PDT

when i use hcitool dev

sudo hcitool dev  Devices:  

rfkill list

0: acer-wireless: Wireless LAN          Soft blocked: no          Hard blocked: no  1: acer-bluetooth: Bluetooth          Soft blocked: no          Hard blocked: no  2: phy0: Wireless LAN          Soft blocked: no          Hard blocked: no  

My kernel:3.16.0-4-amd64

lsmod | grep -i blue  bluetooth             374429  6 bnep,btusb  6lowpan_iphc           16588  1 bluetooth  rfkill                 18867  6 cfg80211,acer_wmi,bluetooth  crc16                  12343  2 ext4,bluetooth  

dmesg:

dmesg | grep -i firmware  [    0.166480] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored  [    9.257608] [Firmware Bug]: battery: (dis)charge rate invalid.  [   10.691014] psmouse serio1: elantech: assuming hardware version 3            (with firmware version 0x550f01)  [   11.742351] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS  

for bluetooth

dmesg | grep -i blue  [   11.300428] Bluetooth: Core ver 2.19  [   11.300445] Bluetooth: HCI device and connection manager initialized  [   11.300452] Bluetooth: HCI socket layer initialized  [   11.300454] Bluetooth: L2CAP socket layer initialized  [   11.300464] Bluetooth: SCO socket layer initialized  [   84.877650] Bluetooth: BNEP (Ethernet Emulation) ver 1.3  [   84.877653] Bluetooth: BNEP filters: protocol multicast  [   84.877658] Bluetooth: BNEP socket layer initialized  

bluetooth status:

bluetooth.service - Bluetooth service   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)   Active: active (running) since Вт 2016-03-29 19:11:14 MSK; 1h 21min ago   Docs: man:bluetoothd(8)   Main PID: 1470 (bluetoothd)   Status: "Running"   CGroup: /system.slice/bluetooth.service         └─1470 /usr/lib/bluetooth/bluetoothd     мар 29 19:11:14 debian bluetoothd[1470]: Bluetooth daemon 5.23   мар 29 19:11:14 debian bluetoothd[1470]: Starting SDP server   мар 29 19:11:14 debian bluetoothd[1470]: Bluetooth management interface      1...d   Hint: Some lines were ellipsized, use -l to show in full.  

output for lspci -knn | grep Net -A2; lsusb:

02:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5] (rev 10)      Subsystem: Acer Incorporated [ALI] Device [1025:0647]      Kernel driver in use: tg3  --  03:00.0 Network controller [0280]: Qualcomm Atheros AR9462 Wireless Network Adapter [168c:0034] (rev 01)      Subsystem: Foxconn International, Inc. Device [105b:e052]      Kernel driver in use: ath9k  Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  Bus 001 Device 004: ID 1bcf:2c18 Sunplus Innovation Technology Inc.   Bus 001 Device 005: ID 0489:e04e Foxconn / Hon Hai   Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 003 Device 003: ID 0000:0538    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  

output modinfo:

alias:          usb:v0489pE04Ed*dc*dsc*dp*ic*isc*ip*in*  

modprobe

sudo modprobe ath3k - doesn't say anything  

for in:

for i in /etc/modprobe.d/*; do echo $i; cat $i | grep ath3k; done  /etc/modprobe.d/ath3k.conf  blacklist ath3k  /etc/modprobe.d/bumblebee.conf  /etc/modprobe.d/dkms.conf  /etc/modprobe.d/fbdev-blacklist.conf  /etc/modprobe.d/intel-microcode-blacklist.conf  /etc/modprobe.d/modesetting.conf  

P.S. if it help... notebook - Acer aspire v3-571g

I want to see the list of all dbus interfaces with a command in terminal .h

Posted: 04 Jul 2021 08:00 AM PDT

I know how to get the list of all services in dbus but then I want to see the list of interfaces inside each service.

dbus-send --session           \    --dest=org.freedesktop.DBus \    --type=method_call          \    --print-reply               \    /org/freedesktop/DBus       \    org.freedesktop.DBus.ListNames   

This gives a list of all available services.

Is there a more elegant way to unlink two tmux clients sharing a session from inside tmux?

Posted: 04 Jul 2021 05:04 AM PDT

This is almost a code-review question, but very *nixy and more about configuration than code. For years since I switched to tmux from screen I've had a couple of nagging issues that I could not make work the way I wanted them to. Since I setup my shell to exec into a tmux session I finally decided it was time to fix this one.

By default when you attach two tmux clients to the same session, they are locked together. Switch panes in one and both switch in sync. This is different from screen where the default behavior was a shared set of panes but the client itself was independent.

What I've wanted was a way to un-bind two tmux clients attached to the same session. This is easy enough to do if you are outside of tmux and launching a new client. Just start a new session with a reference to the parent one:

tmux new-session -t original_session -s new_session  

However try do do this after you are in a client and want to unlink it from whatever other client is sharing that session and things get more complicated. I tried dozens of ways and never hit on one that worked well. The closest I got was using bind <key> prompt-command ... to prompt for both the old and new session names. For whatever reason tmux does not expand the #{session_name} variable inside arguments for a new-session or prompt-command. It does in arguments to many other commands (e.g. I use it in run below) but without that expansion this particular task becomes suddenly complicated. Even with manually entering the values, it only ever sorta worked.

Today I finally got it to work. The result, however, is uglier that I would have liked. It requires a shell function to do most of the magic. In order to contain this to just the config file without involving external scripts (for dotfile portability) I'm using a hack. The config, if you crop off the first two columns, is actually executable as a shell script. With everything wrapped in functions, you can call just the part of the script you need from any keybinding. The shell script bits are comments in the config, while in shell script made the config bit is discarded with a here-doc.

Todays solution came out something like this (my full .tmux.conf file):

# : << ENDOFCONF    # Clear the default binding  unbind C-c  # Pass the name of the current session to a function to clone it  bind C-c run "cut -c3- ~/.tmux.conf | sh -s clone #S"    # ENDOFCONF  # clone () {  #   orig=${1%-*}  #   copy="$orig-$(($( tmux list-sessions -F '#S' | sed -nE "/^${orig}-[0-9]+$/{s/[^0-9]//g;p}" | tail -n1 )+1))"  #   TMUX= tmux new-session -d -t $orig -s $copy  #   tmux switch-client -t $copy  #   tmux set -q -t $copy destroy-unattached on  # }  # $@  

Mind you this works. From a running tmux client, Ctrl+B Ctrl+C creates a new session with a number appended to the name of the current one, uses the current one as a target for the panes, and switches to it.

I'm happy with this except for the nagging idea that I've just made something simple much more complex than it needs to be. Is there a simpler way to achieve this?

PulseAudio cannot open shared library

Posted: 04 Jul 2021 07:25 AM PDT

I'm running Debian wheezy (x86) with GNOME on a Intel Core i7 machine. I'm having problems getting PulseAudio to work properly. Since GNOME 3 automatically installs PulseAudio I'm pretty much stuck with it.

When running ALSA mixer from the console, I get the following error message:

ALSA lib conf.c:3314:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so  ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL default  cannot open mixer: No such file or directory  

The shared library does in fact exist (/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_conf_pulse.so). I've done extensive googling on the issue and came up with no solution that actually works. One of the suggestions was to place the file in an alternative location, but this made no difference.

In addition, many programs that actually attempt to use PulseAudio fail to start. Another error message I've seen is:

mybox:/# pulseaudio  pulseaudio: symbol lookup error: /usr/lib/i386-linux-gnu/libsndfile.so.1: undefined symbol: vorbis_version_string  

ALSA works just fine, but I actually have to deinstall PulseAudio before I can use the mixer to set the volume, after which I can reinstall it. Then, some software that I can force to use ALSA (like XBMC) will work.

The system contains both onboard Intel audio and nVidia HDMI sound drivers. I'm mostly interested in sound over HDMI right now if that matters:

mybox:/# aplay -L  null      Discard all samples (playback) or generate zero samples (capture)  pulse      PulseAudio Sound Server  default:CARD=Intel      HDA Intel, ALC887 Analog      Default Audio Device  sysdefault:CARD=Intel      HDA Intel, ALC887 Analog      Default Audio Device  front:CARD=Intel,DEV=0      HDA Intel, ALC887 Analog      Front speakers  surround40:CARD=Intel,DEV=0      HDA Intel, ALC887 Analog      4.0 Surround output to Front and Rear speakers  surround41:CARD=Intel,DEV=0      HDA Intel, ALC887 Analog      4.1 Surround output to Front, Rear and Subwoofer speakers  surround50:CARD=Intel,DEV=0      HDA Intel, ALC887 Analog      5.0 Surround output to Front, Center and Rear speakers  surround51:CARD=Intel,DEV=0      HDA Intel, ALC887 Analog      5.1 Surround output to Front, Center, Rear and Subwoofer speakers  surround71:CARD=Intel,DEV=0      HDA Intel, ALC887 Analog      7.1 Surround output to Front, Center, Side, Rear and Woofer speakers  iec958:CARD=Intel,DEV=0      HDA Intel, ALC887 Digital      IEC958 (S/PDIF) Digital Audio Output  hdmi:CARD=NVidia,DEV=0      HDA NVidia, HDMI 0      HDMI Audio Output  hdmi:CARD=NVidia,DEV=1      HDA NVidia, HDMI 0      HDMI Audio Output  hdmi:CARD=NVidia,DEV=2      HDA NVidia, HDMI 0      HDMI Audio Output  hdmi:CARD=NVidia,DEV=3      HDA NVidia, HDMI 0      HDMI Audio Output  

I'm now completely at a loss what is wrong with my system. I haven't even messed with any of the settings yet, but I tried purging all the configuration and reinstalling just to be sure.

To me, these error messages look like the packages are broken, but it's been like this for weeks now and several new package versions have been released in the meantime.Does anyone have an idea what's wrong?

Edit:

Some extra information requested by Jan Marek:

mybox:~# ldconfig -v | grep libasound  ldconfig: Can't stat /lib/i486-linux-gnu: No such file or directory  ldconfig: Can't stat /usr/lib/i486-linux-gnu: No such file or directory  ldconfig: Path `/lib/i386-linux-gnu' given more than once  ldconfig: Path `/usr/lib/i386-linux-gnu' given more than once          libasound.so.2 -> libasound.so.2.0.0  

It appears libasound_module_conf_pulse.so is not listed, even though the path /usr/lib/i386-linux-gnu` is searched. More than once even, apparently? I'm not sure why that is, here is the relevant configuration:

## /etc/ld.so.conf:    /usr/X11R6/lib    include /etc/ld.so.conf.d/*.conf    ## /etc/ld.so.conf.d/i486-linux-gnu.conf:    # Multiarch support  /lib/i386-linux-gnu  /usr/lib/i386-linux-gnu  /lib/i486-linux-gnu  /usr/lib/i486-linux-gnu    ## /etc/ld.so.conf.d/libc.conf    # libc default configuration  /usr/local/lib  

As for the strace, I'm not entirely sure what it's trying to tell me.

11655 open("/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_conf_pulse.so", O_RDONLY) = 3  11655 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\7\0\0004\0\0\0"..., 512) = 512  11655 fstat64(3, {st_mode=S_IFREG|0644, st_size=4168, ...}) = 0  11655 mmap2(NULL, 7028, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7785000  11655 mmap2(0xb7786000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xb7786000  11655 close(3) = 0  

I think that means that opening the file was successful, it read 512 bytes and then decided to close the file?

I've added /usr/lib/i386-linux-gnu/alsa-lib to ld.so.conf which changes the behavior when I start alsamixer. With that line I get a segmentation fault instead. During the boot sequence I also used to get a bunch of these pulseaudio errors, so I will try rebooting when I get home (service alsasound restart had no effect)

No comments:

Post a Comment