User Tools

Site Tools


samsung_chromebook_plus_xe513c24

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
samsung_chromebook_plus_xe513c24 [2024/02/02 14:45] austinsamsung_chromebook_plus_xe513c24 [2024/09/22 22:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Samsung Chromebook Plus XE513C24 ====== ====== Samsung Chromebook Plus XE513C24 ======
 +
 +{{ :chromebookplus.jpg?400 |}}
  
 === Developer Mode === === Developer Mode ===
Line 331: Line 333:
  
 Then I had wlp1s0 to configure the normal way. Then I had wlp1s0 to configure the normal way.
 +
 +=== Tweaks ===
 +I didn't want my screen to go black in X with a timeout.  I have my custom UI but also fluxbox installed.   To disable the screen shutting off edit /etc/X11/xorg.conf:
 +<code>
 +Section "ServerFlags"
 +     Option "BlankTime" "0"
 +EndSection
 +</code>
 +
 +I kept bumping the power button and shutting of the machine due to a default settings in elogind.  I edited /etc/elogind/logind.conf:
 +<code>
 +[Login]
 +HandlePowerKey=ignore
 +</code>
 +
 +=== Conky ===
 +<code>
 +-- Conky, a system monitor https://github.com/brndnmtthws/conky
 +--
 +-- This configuration file is Lua code. You can write code in here, and it will
 +-- execute when Conky loads. You can use it to generate your own advanced
 +-- configurations.
 +--
 +-- Try this (remove the `--`):
 +--
 +--   print("Loading Conky config")
 +--
 +-- For more on Lua, see:
 +-- https://www.lua.org/pil/contents.html
 +
 +conky.config = {
 +    alignment = "top_left",
 +    use_xft = true,
 +    font = 'GE Inspira:size=16',
 +    xftalpha = 0.8,
 +    text_buffer_size = 2048,
 +    max_text_width = 0,
 +    override_utf8_locale = true,
 +    uppercase = false,
 +    no_buffers = true,
 +    short_units = true,
 +    format_human_readable = true,
 +
 +    update_interval = 1,
 +    total_run_times = 0,
 +
 +    own_window = true,
 +    own_window_transparent = false,
 +    own_window_type = 'desktop',
 +    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
 +        own_window_argb_visual = true,
 +        own_window_argb_value = 128,
 +    background = true,
 +    use_spacer = 'none',
 +
 +    double_buffer = true,
 +    minimum_width = 215, minimum_height = 215,
 +
 +    draw_shades = false,
 +    default_shade_color = '#000000',
 +
 +    draw_outline = false,
 +    default_outline_color = '#000000',
 +
 +    default_color = 'FFFFFF',
 +    color0 = 'FFFFFF',
 +    color1 = 'FFA300',
 +
 +    draw_borders = false,
 +    stippled_borders = 0,
 +    border_inner_margin = 10,
 +    border_outer_margin = 0,
 +    border_width = 1,
 +    draw_graph_borders = false,--no
 +
 +    gap_x = 50,
 +    gap_y = 50,
 +
 +    imlib_cache_size = 0,
 +}
 +
 +conky.text = [[
 +${color grey}Info:$color ${scroll 32 Conky $conky_version - $sysname $nodename $kernel $machine}
 +$hr
 +${color grey}Uptime:$color $uptime
 +${color grey}Frequency (in MHz):$color $freq
 +${color grey}Frequency (in GHz):$color $freq_g
 +${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
 +${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
 +${color grey}CPU Usage:$color $cpu% ${cpubar 4}
 +${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
 +$hr
 +${color grey}File systems:
 + / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
 +${color grey}Networking:
 +Up:$color ${upspeed wlp1s0} ${color grey} - Down:$color ${downspeed wlp1s0}
 +${color grey}Battery:${color} ${battery_percent sbs-9-000b} ${alignr}${battery_bar 8, 250 sbs-9-000b}
 +$hr
 +${color grey}Name              PID     CPU%   MEM%
 +${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
 +${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
 +${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
 +${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
 +#
 +#REFRESH LOCATION & WEATHER INFO CACHE
 +${execi 600 curl -so ~/.cache/WeatherData 'https://api.openweathermap.org/data/2.5/onecall?units=imperial&lat=46.4855&lon=-88.8940&exclude=minutely,hourly&APPID=a6f8bedf50667be2d3764422a37077d2'}
 +
 +#
 +#REFRESH ICON CACHE
 +${execi 600 sleep 2 && jq -r '.current.weather[0].icon' ~/.cache/WeatherData | xargs printf "http://openweathermap.org/img/wn/%s@2x.png" | xargs curl -so ~/.cache/WeatherNow.png}\
 +${execi 600 sleep 2 && jq -r '.daily[0].weather[0].icon' ~/.cache/WeatherData | xargs printf "http://openweathermap.org/img/wn/%s@2x.png" | xargs curl -so ~/.cache/Weather0.png}\
 +${execi 600 sleep 2 && jq -r '.daily[1].weather[0].icon' ~/.cache/WeatherData | xargs printf "http://openweathermap.org/img/wn/%s@2x.png" | xargs curl -so ~/.cache/Weather1.png}\
 +${execi 600 sleep 2 && jq -r '.daily[2].weather[0].icon' ~/.cache/WeatherData | xargs printf "http://openweathermap.org/img/wn/%s@2x.png" | xargs curl -so ~/.cache/Weather2.png}\
 +${execi 600 sleep 2 && jq -r '.daily[3].weather[0].icon' ~/.cache/WeatherData | xargs printf "http://openweathermap.org/img/wn/%s@2x.png" | xargs curl -so ~/.cache/Weather3.png}\
 +${execi 600 sleep 2 && jq -r '.daily[4].weather[0].icon' ~/.cache/WeatherData | xargs printf "http://openweathermap.org/img/wn/%s@2x.png" | xargs curl -so ~/.cache/Weather4.png}
 +#
 +#WEATHER NOW
 +${voffset -40}${color1}Kenton, MI
 +${color0}${execi 1 jq -r '.current.temp' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}° ${image ~/.cache/WeatherNow.png -s 70x70 -p 160,570}
 +
 +#WEATHER TODAY                                                                                                            
 +${color1}Today${goto 100}${color0}${execi 1 jq -r '.daily[0].temp.min' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°/ ${execi 1 jq -r '.daily[0].temp.max' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°${image ~/.cache/Weather0.png -s 30x30 -p 180, 635}
 +#
 +#WEATHER +1 DAY
 +${color1}${execi 1 jq -r '.daily[1].dt' ~/.cache/WeatherData |awk '
 +{print "@" $1}' |xargs date +%a --date}${goto 100}${color0}${execi 1 jq -r '.daily[1].temp.min' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°/ ${execi 1 jq -r '.daily[1].temp.max' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°${image ~/.cache/Weather1.png -s 30x30 -p 180,658}
 +#
 +#WEATHER +2 DAYS
 +${color1}${execi 1 jq -r '.daily[2].dt' ~/.cache/WeatherData |awk '
 +{print "@" $1}' |xargs date +%a --date}${goto 100}${color0}${execi 1 jq -r '.daily[2].temp.min' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°/ ${execi 1 jq -r '.daily[2].temp.max' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°${image ~/.cache/Weather2.png -s 30x30 -p 180,685}
 +#
 +#WEATHER +3 DAYS
 +${color1}${execi 1 jq -r '.daily[3].dt' ~/.cache/WeatherData |awk '
 +{print "@" $1}' |xargs date +%a --date}${goto 100}${color0}${execi 1 jq -r '.daily[3].temp.min' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°/ ${execi 1 jq -r '.daily[3].temp.max' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°${image ~/.cache/Weather3.png -s 30x30 -p 180,710}
 +#
 +#WEATHER +4 DAYS
 +${color1}${execi 1 jq -r '.daily[4].dt' ~/.cache/WeatherData |awk '
 +{print "@" $1}' |xargs date +%a --date}${goto 100}${color0}${execi 1 jq -r '.daily[4].temp.min' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°/ ${execi 1 jq -r '.daily[4].temp.max' ~/.cache/WeatherData |awk '{print int($1+0.5)}'}°${image ~/.cache/Weather3.png -s 30x30 -p 180,735}
 +]]
 +                                                                                                                      
 +</code>
 +
 +{{ :conky.png?400 |}}
 +
 +=== Docker ===
 +
 +When attempted to emerge docker I got errors about circular deps with dev-lang/go.  I also needed to recompile binutils with gold use flag.
 +<code>
 +sys-devel/binutils gold
 +</code>
 +Then I emerged dev-lang/go by itself.
 +<code>
 +emerge --ask devlang/go
 +</code>
 +Finally I emerged docker.
 +<code>
 +emerge --ask app-containers/docker
 +</code>
 +
 +After that I found I couldn't start a container.  I was missing some required kernel CONFIG options.  
 +
 +  * I ran this [[https://github.com/moby/moby/blob/master/contrib/check-config.sh|script]] to figure out what needed to be changed.
 +  * Then compile the kernel and modules as normal.
 +  * Follow the steps above to recreate the image for p1.
 +  * dd the image, ensure to take in account that the device is now probably /dev/mmcblk1
  
 === Refrences === === Refrences ===
samsung_chromebook_plus_xe513c24.1706885154.txt.gz · Last modified: 2024/09/22 22:08 (external edit)