Skip to content

Commit

Permalink
Not print Raw EDID in logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jun 22, 2014
1 parent 1298316 commit 98210fe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/i-nex/.src/FGraphic.module
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Public Sub _inits()
Dim all_interfaces As String

Logs("Add Interfaces to ComboBox", Logger.Info)
Shell "ls /sys/class/drm/ | grep 'card[0-9]' | wc -l" Wait To all_interfaces
Shell "ls /sys/class/drm/ | grep \"card[0-9]\" | wc -l" Wait To all_interfaces
Max_Interfaces = Val(all_interfaces)
For Avail_Interfaces = 1 To Max_Interfaces
Shell "ls /sys/class/drm/ | grep 'card[0-9]' | sed -n '" & Avail_Interfaces & "p'" Wait To Interfaces_X
Shell "ls /sys/class/drm/ | grep \"card[0-9]\" | sed -n '" & Avail_Interfaces & "p'" Wait To Interfaces_X
Interfaces_X = Replace(Interfaces_X, "\n", "")
If Interfaces_X Like "*-*" Then
Finfosys.ComboBox8.Add(Interfaces_X)
Expand All @@ -43,14 +43,14 @@ Public Sub _check()
Try status = File.Load("/sys/class/drm/" & Finfosys.ComboBox8.Text & "/status")
Try enabled = File.Load("/sys/class/drm/" & Finfosys.ComboBox8.Text & "/enabled")
Try dpms = File.Load("/sys/class/drm/" & Finfosys.ComboBox8.Text & "/dpms")
Shell "/usr/bin/i-nex-edid /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid 2>/dev/null | grep 'ASCII string' | cut -d ':' -f 2" Wait To monitor_name
Shell "/usr/bin/i-nex-edid /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid 2>/dev/null | grep 'voltage level'" Wait To voltage_level
Shell "/usr/bin/i-nex-edid /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid 2>/dev/null | grep 'Manufacturer:' | cut -d ':' -f 2" Wait To manufacturer
Shell "/usr/bin/i-nex-edid /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid 2>/dev/null | grep 'Serial number:' | cut -d ':' -f 2" Wait To serial_number
Shell "/usr/bin/i-nex-edid /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid 2>/dev/null | grep 'Gamma:' | cut -d ':' -f 2" Wait To Gamma
Shell "/usr/bin/i-nex-edid /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid 2>/dev/null | grep 'Maximum image size:' | cut -d ':' -f 2" Wait To Maximum_image_size
Shell "cat /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid | /usr/bin/i-nex-edid | grep \"ASCII string\" | cut -d ':' -f 2" Wait To monitor_name
Shell "cat /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid | /usr/bin/i-nex-edid | grep \"voltage level\"" Wait To voltage_level
Shell "cat /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid | /usr/bin/i-nex-edid | grep \"Manufacturer:\" | cut -d ':' -f 2" Wait To manufacturer
Shell "cat /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid | /usr/bin/i-nex-edid | grep \"Serial number:\" | cut -d ':' -f 2" Wait To serial_number
Shell "cat /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid | /usr/bin/i-nex-edid | grep \"Gamma:\" | cut -d ':' -f 2" Wait To Gamma
Shell "cat /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid | /usr/bin/i-nex-edid | grep \"Maximum image size:\" | cut -d ':' -f 2" Wait To Maximum_image_size
If IsNull(monitor_name) Then
Shell "/usr/bin/i-nex-edid /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid 2>/dev/null | grep 'Monitor name:' | cut -d ':' -f 2" Wait To monitor_name
Shell "cat /sys/class/drm/" & Finfosys.ComboBox8.Text & "/edid | /usr/bin/i-nex-edid | grep \"Monitor name:\" | cut -d ':' -f 2" Wait To monitor_name
Endif
Endif

Expand Down

0 comments on commit 98210fe

Please sign in to comment.