Skip Navigation
promitheas promitheas @programming.dev

I made the icy-nord and icy-nord-darker themes.

change suggestions

issues

update notifications

@promitheas:matrix.org

Posts 4
Comments 20
[T480] [Linux] Battery installed not supported by this system and will not charge - LGC 11 01AV424
  • I think it might be for the older models, I'll check the manual for it.

    I tried updating the BIOS but you need a battery with at least 25% charge plugged in as well as the AC adapter for it to let you even begin the update process (actually an amazing safety feature). Since mine has 0% I cant do that xD

  • [T480] [Linux] Battery installed not supported by this system and will not charge - LGC 11 01AV424
  • I assume you have tried the BIOS reset procedure? I think it’s holding FN + S + V while the system is powered off.

    Is this the same as what @[email protected] mentioned?

    Also there is a reset button in the bottom of the laptop near ThinkEngine controller: Power off the laptop, disconnect both batteries and CMOS and hold reset button for a minute.

    If yes I'm going to try it now and get back to you

    EDIT: I tried the Fn + S + V but wasn't sure if I need to do it while batteries are disconnected, or if I needed to hold it for the full 1 minute, so I held it down for about 20 seconds with the battery plugged in. Didn't seem to fix it.

    As for the BIOS, some stuff I read in forum posts etc leads me to think that the the check isn't actually in the BIOS but in the EC chip, so replacing the BIOS wouldn't do much. Is this truly the case, or does a replacement BIOS also circumvent the EC check? Many thanks for your help.

  • [T480] [Linux] Battery installed not supported by this system and will not charge - LGC 11 01AV424
  • @promitheas Never heard about battery whitelists. What BIOS version do you have?

    $ dmidecode -s bios-version
    N24ET72W (1.47 )
    

    Also there is a reset button in the bottom of the laptop near ThinkEngine controller: Power off the laptop, disconnect both batteries and CMOS and hold reset button for a minute.

    Will try this now and update this comment once I'm done

    EDIT: I tried that but it doesn't seem to work. Note that I don't seem to have the internal battery, just its cover. After setting the date and time correctly in the BIOS it boots but still shows the message about the battery not being genuine.

  • ThinkPad @lemmy.ml promitheas @programming.dev

    [T480] [Linux] Battery installed not supported by this system and will not charge - LGC 11 01AV424

    Hello everyone. I just got a new battery for my T480 from my work supplier. It is a Greencell LGC 11 Model: 01AV424 and I get a BIOS message before my bootloader:

    > The battery installed is not supported by this system and will not charge. Please replace the battery with the correct Lenovo battery for this system. Press the ESC key to continue.

    !

    Once I plugged it in and booted up the battery had 74% charge, and I let it discharge until 6% without the AC adaptor plugged in as per the instructions, so that I could then fully charge it (and repeat the process 3-5 times). However, once it reached 6% and I plugged it in it wasn't charging and ended up dropping to 1% where it remains even now. Below I'll include outputs from some commands.

    Everything I read online mentions flashing the EC chip to whitelist the battery, or changing the BIOS to something like coreboot. I'd like to avoid flashing any chips unless absolutely the only option, in case something goes wrong and I brick my motherboard. I've tried also resetting the EC chip by pushing the button in the pinhole at the bottom of the laptop with a paper clip, but with no effect.

    ``` $ upower -e /org/freedesktop/UPower/devices/line_power_AC /org/freedesktop/UPower/devices/battery_BAT1 /org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o001 /org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o002 /org/freedesktop/UPower/devices/DisplayDevice

    $ upower -i /org/freedesktop/UPower/devices/battery_BAT1 native-path: BAT1 vendor: LGC 11 model: 01AV424 serial: 14050 power supply: yes updated: Tue 11 Jun 2024 12:46:25 EEST (19 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: pending-charge warning-level: none energy: 0.41 Wh energy-empty: 0 Wh energy-full: 22.23 Wh energy-full-design: 22.23 Wh energy-rate: 0 W voltage: 10.296 V charge-cycles: 1 percentage: 1% capacity: 100% technology: lithium-ion icon-name: 'battery-caution-charging-symbolic' ```

    As you can see the state it is stuck in is "pending-charge"

    Any help would be appreciated. Also, if you need any additional info please let me know and I will provide it.

    EDIT: Supplier will pick it up from my work in a couple days and try to solve the issue. Hopefully that works, otherwise I'll have to see about flashing the EC chip with the patched firmware to remove the whitelist.

    6
    Help needed for odd bspwm behaviour
  • I just tried it by commenting that line out in the config and running in a terminal the following:

    bspc config -m HDMI-A-1 bottom_padding XX

    where XX are different values I played around with. I tried 20, 1 and 3. They seem to get set correctly. 3 is the value I had in my config. I'm thinking it might be something like a race between bspwm restarting itself and running the command in the config file (config files are basically just commands to the WM). I'll try moving that part of the config further down in the config so hopefully it has a chance to set its default values on restart and after that set my values.

  • Help needed for odd bspwm behaviour
  • Ive tried commenting out those lines, but Ill give it a shot again and see what happens

  • Help needed for odd bspwm behaviour

    <EDIT>Solution at the end of the post</EDIT>

    Hello guys. I've recently started experiencing an odd issue with my bspwm setup where on a reboot or upon restarting bspwm in-place I either don't get the top polybar (fixed this by explicitly killing all polybar processes from my bspwm script if they exist and then on a separate line running my launch script), or the gap between the bottom of the windows on my top (secondary) monitor and the bottom edge of the monitor is far too wide. Here is a screenshot of what I mean:

    !

    Out of the 20 times give or take that I will restart bspwm either from the terminal or through the sxhkd keybind I set, only once will it actually size itself correctly with the proper gap. The next time I restart it will revert back to this large gap. Here is also my bspwmrc file

    ``` #! /bin/sh

    pgrep -x sxhkd > /dev/null || sxhkd -s &

    pgrep -io "sxhkd" || { killall sxhkd; sxhkd > /dev/null 2>&1 & }

    pgrep -io "sxhkd" | xargs kill sxhkd -s & pgrep -x copyq > /dev/null || copyq & pgrep -x xfce4-power-manager > /dev/null || xfce4-power-manager & pgrep -x dunst > /dev/null || dunst & pgrep -x nm-applet > /dev/null || nm-applet & pgrep -x picom > /dev/null || picom -b pgrep -x polybar > /dev/null || $HOME/.config/polybar/launch.sh if [[ $(xrandr -q | grep "HDMI-A-1 connected") ]]; then xrandr --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal xrandr --output HDMI-A-1 --mode 1920x1080 --rotate inverted --above HDMI-A-0 bspc monitor HDMI-A-0 -d 1 2 3 4 5 bspc monitor HDMI-A-1 -d 6 7 8 9 0

    # Fix gap appearing above windows on first monitor after restarting bspwm bspc config -m HDMI-A-0 top_padding 3 bspc config -m HDMI-A-0 bottom_padding 40

    # Fix top/bottom margins for secondary monitor bspc config -m HDMI-A-1 bottom_padding 3 bspc config -m HDMI-A-1 top_padding 40 bspc wm -O HDMI-A-0 HDMI-A-1 else # bspc monitor -d I II III IV V VI VII VIII IX X bspc monitor HDMI-A-0 -d 1 2 3 4 fi $HOME/.fehbg & setxkbmap us $HOME/.bin/remap-caps-esc bspc config border_width 2 bspc config window_gap 10

    bspc config

    bspc config split_ratio 0.52 bspc config borderless_monocle true bspc config gapless_monocle true

    Dracula theme

    bspc config normal_border_color "#44475a" bspc config active_border_color "#6272a4" bspc config focused_border_color "#8be9fd" bspc config presel_feedback_color "#6272a4"

    Make sure theme cursor is shown when mouse is not over a window, instead of the standard default one

    xsetroot -cursor_name left_ptr bspc rule -a Gimp desktop='^8' state=floating follow=on bspc rule -a Chromium desktop='^2' bspc rule -a mplayer2 state=floating bspc rule -a Kupfer.py focus=on bspc rule -a Screenkey manage=off bspc rule -a Zathura state=tiled bspc rule -a Passy state=tiled

    bspc rule -a scpad sticky=on state=floating rectangle=1896x400+10+50

    betterlockscreen -u $HOME/Pictures/wallpapers/ --fx dim --dim 50 ```

    The lines where I set bottom_padding for the secondary monitor and top padding for the primary monitor I just commented out but they did not have any effect.

    I would really appreciate any help for this. Thanks in advance!

    <EDIT>

    Solution for polybar not launching both bars is to change the single polybar line that checks for any existing instances and runs the launch script if none are found, to 2 lines that will explicitly kill all polybar processes and then run the launch script. I also moved this a bit further down in the file. pgrep -x polybar > /dev/null | xargs kill $HOME/.config/polybar/launch.sh

    The solution for the gap on the bottom of the second monitor was to move the if check further down in the file, hopefully giving bspwm enough time to set its defaults and then have my values set. It now looks like this: ``` #! /bin/sh

    pgrep -x sxhkd > /dev/null || sxhkd -s &

    pgrep -io "sxhkd" || { killall sxhkd; sxhkd > /dev/null 2>&1 & }

    pgrep -io "sxhkd" | xargs kill sxhkd -s &

    pgrep -x copyq > /dev/null || copyq & pgrep -x xfce4-power-manager > /dev/null || xfce4-power-manager & pgrep -x dunst > /dev/null || dunst & pgrep -x nm-applet > /dev/null || nm-applet &

    pgrep -x picom > /dev/null | xargs kill picom -b

    THESE ARE THE 2 POLYBAR LINES WHERE THE FIRST KILLS ANY EXISTING PROCESSES AND THE SECOND RUNS THE LAUNCH SCRIPT

    pgrep -x polybar > /dev/null | xargs kill $HOME/.config/polybar/launch.sh

    $HOME/.fehbg &

    setxkbmap us $HOME/.bin/remap-caps-esc

    bspc config border_width 2 bspc config window_gap 10

    bspc config

    bspc config split_ratio 0.52 bspc config borderless_monocle true bspc config gapless_monocle true

    Dracula theme

    bspc config normal_border_color "#44475a" bspc config active_border_color "#6272a4" bspc config focused_border_color "#8be9fd" bspc config presel_feedback_color "#6272a4"

    THIS IS THE CHECK FOR WHETHER THERE ARE 2 MONITORS CONNECTED WHICH I MOVED DOWN IN THE FILE

    if [[ $(xrandr -q | grep "HDMI-A-1 connected") ]]; then xrandr --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal xrandr --output HDMI-A-1 --mode 1920x1080 --rotate inverted --above HDMI-A-0 bspc monitor HDMI-A-0 -d 1 2 3 4 5 bspc monitor HDMI-A-1 -d 6 7 8 9 0

    # pgrep -x polybar > /dev/null || $HOME/.config/polybar/launch.sh

    # Fix gap appearing above windows on first monitor after restarting bspwm bspc config -m HDMI-A-0 top_padding 3 bspc config -m HDMI-A-0 bottom_padding 40

    # Fix top/bottom margins for secondary monitor bspc config -m HDMI-A-1 bottom_padding 3 bspc config -m HDMI-A-1 top_padding 40

    bspc wm -O HDMI-A-0 HDMI-A-1 else # bspc monitor -d I II III IV V VI VII VIII IX X bspc monitor HDMI-A-0 -d 1 2 3 4 # pgrep -x polybar > /dev/null || $HOME/.config/polybar/launch.sh fi

    Make sure theme cursor is shown when mouse is not over a window, instead of the standard default one

    xsetroot -cursor_name left_ptr

    bspc rule -a Gimp desktop='^8' state=floating follow=on bspc rule -a Chromium desktop='^2' bspc rule -a mplayer2 state=floating bspc rule -a Kupfer.py focus=on bspc rule -a Screenkey manage=off bspc rule -a Zathura state=tiled bspc rule -a Passy state=tiled

    bspc rule -a scpad sticky=on state=floating rectangle=1896x400+10+50

    betterlockscreen -u $HOME/Pictures/wallpapers/ --fx dim --dim 50 ```

    Note: On booting into the WM the secondary monitor polybar doesn't launch, but it appears after restarting bspwm.

    Im not entirely sure if my way of thinking is correct with regards to how bspwm handles the timing of setting default values and then reading its configuration file, but it seems to at least half work now.

    </EDIT>

    3
    Beethoven's 9th Symphony
  • I think it refers to producing a single baby, rather than just a baby every month

  • Beethoven's 9th Symphony
  • Gives these vibes

  • Is Modding Hogwarts Legacy on Linux Possible?

    Hello everyone! I just wanted to ask if its possible to make mods for Hogwarts Legacy entirely on a Linux machine, and if it is if anyone can point me to any resources to get started with setting it up on Linux (guides specific to making actual mods I can probably find easily and I guess will be relevant regardless of if the guide is made on a Windows machine).

    That's all, and thanks in advance!

    3
    Do you have any smell you like/dislike even though most people don't?
  • I can't stand the smell of garlic to the point of retching if I do. Just the thought of it makes me unwell. It's a long story, why I'm like this xD

  • If cats could talk, would we expect them to work and contribute to society?
  • I like how you assume they wouldn't be our overlords :D

  • [BSPWM] Whole Lotta Red
  • That looks really good, but im curious how the bright red feels after long term use. I personally wouldnt be able to have such an aggressive colour to look at daily. How is it for you?

  • Search engines and privacy
  • I poked around in its settings and it seems to have that feature

  • Search engines and privacy
  • I set it as my default search engine on my mobile, and will check it out for some time before committing to all my devices

  • Search engines and privacy
  • Ill check startpage out! Also an interesting blog post regarding kagi. Ive never used it in the past, but now i definitely wouldnt ever even consider it.

  • More than 400,000 songbirds killed by organised crime in Cyprus
  • It is organised crime. Its a whole black market industry over here

  • Oh no, I'm being converted...
  • As ive grown older i find myself disagreeing more and more with the jedi whom as a child i idolised as paragons of good. But palpatine, vader, and the empire are so many things before being "poor good revolutionaries" trying to take down the status quo simply from the good of their golden hearts. Theres always more than 2 choices people :)

  • Oh no, I'm being converted...
  • God I wish she'd finished the republic/imperial commando series. The only reason i dont read it once every year is because it hurts too much to know that theres no new book to round it out and complete it.

  • Do you like olives?
  • I love them. I prefer green olives the way we prepare them in my country, to black.

  • How old is the oldest building in the town you live in?
  • Weve got Roman era ruins I think, but I cant find any info on the oldest standing building. Probably from the 13th-14th century.

  • Newb when it comes to these subjects but really want to learn the hardware side of things - Help with old repository for EDTracker
  • Im in the EU so will probably have to look on the second site you linked, as adafruit.com looks like its only for the US.

    As for the advice, yea I was thinking the same thing. I dont want to overcomplicate things and have to deal with coming up for my own designs at this stage. The project I'm interested in building has circuit diagrams and arduino code included, I'm just not sure if it's all still relevant seeing as its quite old.

  • Arduino @lemmy.ml promitheas @programming.dev

    Newb when it comes to these subjects but really want to learn the hardware side of things - Help with old repository for EDTracker

    Hello guys! While I am a relatively experienced programmer, I have practically zero experience on the hardware/electronics side of things. I really want and need (I'd like to work in embedded systems) to get this stuff in my "tool belt" of skills, but I am really worried that I will do something wrong or order the wrong parts because it is quite an old project I will be trying to build.

    I would like to make this project (EDTracker github) so that i can play all my sim games that benefit from head tracking again. I had one which was pre-built but the connector broke. I would prefer a version with the magnetometer (9150 or 9250). The problem is that due to my inexperience I have no idea where to search for cheap(ish) components, or even if the components listed in the docs are still available or if there are better ones that do the same thing.

    I realise this is not much (almost nothing) to go on, but I would really appreciate any help at all that can push me in the right direction. Also, please be understanding of my possibly ignorant questions. When you have no knowledge in a field it is often hard to know what the right questions are :)

    Many thanks in advance!

    Edit: Spelling

    2