mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
next debugger
This commit is contained in:
parent
e31f5b3190
commit
11179f25d5
14
inxi
14
inxi
|
@ -2694,7 +2694,7 @@ get_audio_data()
|
|||
}' $FILE_ASOUND_DEVICE ) )
|
||||
fi
|
||||
IFS="$ORIGINAL_IFS"
|
||||
time get_audio_usb_data
|
||||
get_audio_usb_data
|
||||
# handle cases where card detection fails, like in PS3, where lspci gives no output, or headless boxes..
|
||||
if [[ ${#A_AUDIO_DATA[@]} -eq 0 ]];then
|
||||
A_AUDIO_DATA[0]='Failed to Detect Sound Card!'
|
||||
|
@ -2718,7 +2718,7 @@ get_audio_usb_data()
|
|||
log_function_data 'raw' "usb_data:\n$lsusb_data"
|
||||
if [[ -n $lsusb_data ]];then
|
||||
# for every sound card symlink in /proc/asound - display information about it
|
||||
for usb_proc_file in /proc/asound/*
|
||||
time for usb_proc_file in /proc/asound/*
|
||||
do
|
||||
# If the file is a symlink, and contains an important usb exclusive file: continue
|
||||
if [[ -L $usb_proc_file && -e $usb_proc_file/usbid ]]; then
|
||||
|
@ -2727,7 +2727,7 @@ get_audio_usb_data()
|
|||
usb_id=$( cat $usb_proc_file/usbid )
|
||||
usb_data=$( grep "$usb_id" <<< "$lsusb_data" )
|
||||
if [[ -n $usb_data && -n $usb_id ]];then
|
||||
usb_data=$( gawk '
|
||||
usb_data=$( time gawk '
|
||||
BEGIN {
|
||||
IGNORECASE=1
|
||||
string=""
|
||||
|
@ -2762,7 +2762,7 @@ get_audio_usb_data()
|
|||
|
||||
eval $LOGFE
|
||||
}
|
||||
|
||||
get_audio_usb_data;exit
|
||||
get_audio_alsa_data()
|
||||
{
|
||||
eval $LOGFS
|
||||
|
@ -6012,8 +6012,8 @@ print_audio_data()
|
|||
local a_audio_working='' alsa_driver='' alsa_data='' port_plural='' module_version=''
|
||||
local bus_usb_text='' bus_usb_id='' line_starter='Audio:' alsa='' alsa_version=''
|
||||
# set A_AUDIO_DATA and get alsa data
|
||||
time get_audio_data
|
||||
time get_audio_alsa_data
|
||||
get_audio_data
|
||||
get_audio_alsa_data
|
||||
# alsa driver data now prints out no matter what
|
||||
if [[ -n $A_ALSA_DATA ]];then
|
||||
IFS=","
|
||||
|
@ -7344,7 +7344,7 @@ print_sensors_data()
|
|||
if [[ -n ${a_sensors_working[2]} ]];then
|
||||
psu_temp="${C1}psu:${C2} ${a_sensors_working[2]} "
|
||||
fi
|
||||
gpu_temp=$( time get_gpu_temp_data )
|
||||
gpu_temp=$( get_gpu_temp_data )
|
||||
# dump the unneeded screen data for single gpu systems
|
||||
if [[ $( wc -w <<< $gpu_temp ) -eq 1 && $B_EXTRA_DATA != 'true' ]];then
|
||||
gpu_temp=$( cut -d ':' -f 2 <<< $gpu_temp )
|
||||
|
|
Loading…
Reference in a new issue