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