Software > User Zone
Rough edges and how I work around them (or not)
Borley:
--- Quote from: Corvidae on March 14, 2023, 08:57:56 pm ---Apologies for bumping this, but has anyone figured out why this happens? I'm running into this constantly, and everything I've tried to avoid having to do a full power cycle has failed. I tried powering off the individual ports of the hub (the only Genesys Logic hub on the board, GL852 I believe) it is connected to, powering off the entire hub that it is connected to (not just individual ports), and even powering off the TI USB Hub that pretty much the entire system uses, but none of them bring the audio device back.
--- End quote ---
I have found that instead of rebooting, it is possible to just restart the pulseaudio service (for those of us using pulseaudio and systemd):
--- Code: ---systemctl --user restart pulseaudio
--- End code ---
Always corrects the issue within seconds. Maybe a script that runs this a minute or two after login would automate the problem away.
Borley:
--- Quote from: pocock on January 25, 2021, 03:05:29 am ---Can you please see if this is fixed by this update?
Please confirm the ffmpeg version you are using
--- End quote ---
--- Quote from: Borley on January 27, 2021, 06:57:15 am ---I will tag this to check. I am currently on ffmpeg 4.1.6.
--- End quote ---
I'm so bad with consistency. Anyway, just checked with the same script while using ffmpeg 4.3.5. Problem persists.
Here is the script:
--- Code: ---#!/bin/sh
if test $# -lt 6; then
cat <<-EOH
$0: Script to generate animated gifs easily from command line.
Usage:
$0 input.(mp4|avi|webm|flv|...) output.gif horizontal_resolution fps start_time duration
EOH
exit 1
fi
palette="$(mktemp /tmp/ffmpeg2gifXXXXXX.png)"
filters="fps=$4,scale=$3:-1:flags=lanczos"
ffmpeg -v warning -ss "$5" -t "$6" -i "$1" -vf "$filters,palettegen" -y "$palette"
ffmpeg -v warning -ss "$5" -t "$6" -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$2"
rm -f "$palette"
--- End code ---
The file it produces, from a sample:
Corvidae:
--- Quote from: Borley on March 25, 2023, 10:03:34 am ---I have found that instead of rebooting, it is possible to just restart the pulseaudio service (for those of us using pulseaudio and systemd):
--- Code: ---systemctl --user restart pulseaudio
--- End code ---
Always corrects the issue within seconds. Maybe a script that runs this a minute or two after login would automate the problem away.
--- End quote ---
Are you saying your audio device doesn't drop off the USB bus completely? If I do a "hot reboot", i.e. OS -> Petitboot -> OS, the audio device is fine and works straight away. If I do a proper shutdown that turns off the CPU, status light turns orange, etc, then if I start the system again the audio device is completely gone from the USB subsystem until I completely remove all power from the system.
If it is working for you, I'd be curious to know what revision Blackbird board you have - I wonder if that makes a difference here (I have 1.02).
Borley:
--- Quote from: Corvidae on March 25, 2023, 01:18:41 pm ---Are you saying your audio device doesn't drop off the USB bus completely? If I do a "hot reboot", i.e. OS -> Petitboot -> OS, the audio device is fine and works straight away. If I do a proper shutdown that turns off the CPU, status light turns orange, etc, then if I start the system again the audio device is completely gone from the USB subsystem until I completely remove all power from the system.
If it is working for you, I'd be curious to know what revision Blackbird board you have - I wonder if that makes a difference here (I have 1.02).
--- End quote ---
It is possible that our issues are just similar yet separate. What happens for me is that sometimes (a minority of bootups) GNOME will only report the existence of my HDMI audio through the GPU with no dropdown option for the usual "CM106 Like Sound Device" or it might just erroneously say "Speakers" (which provide no audio out when tested). Restarting pulseaudio appears to rectify this.
My main board is revision 1.01.
Corvidae:
--- Quote from: Borley on March 26, 2023, 11:18:26 am ---It is possible that our issues are just similar yet separate. What happens for me is that sometimes (a minority of bootups) GNOME will only report the existence of my HDMI audio through the GPU with no dropdown option for the usual "CM106 Like Sound Device" or it might just erroneously say "Speakers" (which provide no audio out when tested). Restarting pulseaudio appears to rectify this.
My main board is revision 1.01.
--- End quote ---
It sounds like that might be the case. The issue I am experiencing is that the audio device never even appears as a connected USB device, so it doesn't even have a chance to get to the audio system. As an example, here is the relevant output of lsusb -tv when I am booted into the host system with the audio device working (I plugged in a flash drive to the board USB port to rule out the hub being bad):
--- Code: ---/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
<...>
|__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
ID 05e3:0610 Genesys Logic, Inc. Hub
|__ Port 3: Dev 8, If 0, Class=Mass Storage, Driver=usb-storage, 480M
ID 154b:007a PNY Classic Attache Flash Drive
|__ Port 4: Dev 7, If 0, Class=Audio, Driver=snd-usb-audio, 12M
ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device
|__ Port 4: Dev 7, If 1, Class=Audio, Driver=snd-usb-audio, 12M
ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device
|__ Port 4: Dev 7, If 2, Class=Audio, Driver=snd-usb-audio, 12M
ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device
|__ Port 4: Dev 7, If 3, Class=Human Interface Device, Driver=usbhid, 12M
ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device
--- End code ---
But if I shut down the system with power still connected, then boot back into the host system, this is what I get:
--- Code: ---/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
<...>
|__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
ID 05e3:0610 Genesys Logic, Inc. Hub
|__ Port 3: Dev 7, If 0, Class=Mass Storage, Driver=usb-storage, 480M
ID 154b:007a PNY Classic Attache Flash Drive
--- End code ---
The flash drive I plugged into the lone USB port on the board is still present, so it's (probably) not the hub that is having issues. Checking dmesg output also doesn't have any useful information beyond it just not saying anything relating to the audio device when it is not being detected. Other than the board revision, the only other major difference between our setups is that I'm using pipewire instead of pulseaudio, but given that the USB device is not there in the first place I doubt that is the issue here.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version