ArgonOne Case Power buttons not working on Kali Linux install

Hi All,
Sorry if anything sounds stupid, I am completely new to Raspberry Pi and Linux,
I recently purchased a Raspberry Pi and ArgonOne v2 case with SSD but unable to get the Power buttons working (and guessing the fan isnt as well).

Kit:
RASPBERRY PI 4 MODEL B 8GB,
ARGON ONE V2 RASPBERRY PI 4 CASE,
SSD Enclosure

Loader MicroSD:
PINN with OS images stored on a M2 SSD

OS Images installed:
Raspbian & Kali Linux 32bit & Kali Linux 64bit

Issue:
I have found the script for ArgonOne case to install the driver for the fan and powerswitch - which works for the Raspbian Installation and i can see the additional shortcuts created on the desktop.
However, when I try to do it on the Kali LInux - it appears to install without errors but there is not shortcuts created on the desktop and the powerbuttons dont work like they do on the raspbian image when i boot into it.
I have also noticed when I select Shutdown in Kali Linux, the Argon case doesnt actually shutdown, the Red Light remains on.

I have tried running a script found in - Kali and raspi-gpio for arm64 however it says it no longer works, also when i go to the argon40 case, it appears to be hacked.

I tried running a script for Ubuntu mentioned at - GitHub - meuter/argon-one-case-ubuntu-20.04: port of the argon one case power button and fan script for Ubuntu 20.04 on rpi 4 however it doesnt seem to have any difference.

Any ideas how i get the Argon Case for the Raspberry Pi working on the Kali Linux installations?
Thanks

1 Like

Hi,

No worries, forums are designed for questions, we’re glad to help out.

I’m quite sure that’s normal behaviour (I noticed the same thing in my OctoPrint setup), that’s a power indicator light on the Pi to indicate that there’s still 5V available for your board from the USB port, as long as your activity light isn’t flashing indicating reading or writing to the memory of your card that should be fine. (The shutdown button doesn’t actually disconnect power, it just allows your Pi to pickup that a user wants to shut it down and triggers an interrupt in a similar way to pressing a keystroke on a keyboard)

Did you get any messages back from your terminal when you ran sudo curl https://raw.githubusercontent.com/meuter/argon-one-case-ubuntu-20.04/master/argon1.sh |bash? If so, would you be able to confirm what these are or if possible send through a screenshot?

Also, can you please send through your output from sudo i2cdetect -y 1 that you’re getting on the Pi while you’ve got it set up with the case? I’m curious to see whether the board is being recognised at all when it’s attached to your Pi.

Finally, if you’ve got another uSD with you, can you please flash the latest Raspberry Pi OS and try to get the case operating normally from there? In my experience Argon usually has pretty impressive QC on their boards, but it’d be best to open up the case and inspect the boards for any damage or missing solder joints and get the fan running with another OS to check that there’s no hardware faults with your particular rig.

Please let us know how you go with it, it’s always helpful to have resources such as this discussion along with an outcome for anyone running into similar issues :slightly_smiling_face:

1 Like

Thanks for the response Bryce,
Regarding the Power LED on front of case:
I have Raspbian (i think thats what it is called) on the MicroSD and when I log into that, the Power Button (Double Tap to Power Off) does seem to work fine, also when I select Shutdown from the Menu Bar, the Red LED from the front of the Argon case does actually turn off within about 10 secs of shutting down Raspbian. It seems to be just Kali Linux that doesnt want to shut it down.

1 Like

Running Command on Kali Linux to install AgonCase Drivers - I receive the below:
(I noticed a few errors regarding about USB WiFi Adaptor connected appear in there somehow - I have been stuffing around with getting it working, but will sort out that separately.

However i do actually see the shortcuts created on the desktop this time. I’ll reboot and then see if it works and will come back to you. Thanks

sudo curl https://raw.githubusercontent.com/meuter/argon-one-case-ubuntu-20.04/master/argon1.sh |bash
[sudo] password for kali: 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*****************************************************
Step 1 - installing necessary dependencies           
*****************************************************
100 24438  100 24438    0     0  27644      0 --:--:-- --:--:-- --:--:-- 27613
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-rpi.gpio is already the newest version (0.7.0-0.2+b2).
The following packages were automatically installed and are no longer required:
  cryptsetup-run exfat-fuse gir1.2-gst-plugins-base-1.0 gir1.2-keybinder-3.0
  gnome-session-canberra gstreamer1.0-pulseaudio kazam libboost-iostreams1.71.0
  libboost-thread1.71.0 libcapstone3 libcrypto++6 libdap25 libdav1d4 libepsilon1
  libgdal27 libgeos-3.8.1 libidn11 libjs-sizzle libjsoncpp1 libllvm10 libmicrohttpd12
  libntfs-3g883 libomp-9-dev libomp5-9 libperl5.30 libplymouth4 libpython3.8
  libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib libradare2-4.3.1 libre2-8
  libreadline5 librest-0.7-0 libsane libssl1.0.2 libwireshark13 libwiretap10 libwsutil11
  libxcb-util0 libyara4 node-jquery perl-modules-5.30 python-babel-localedata
  python3-atomicwrites python3-babel python3-gevent python3-greenlet
  python3-ipython-genutils python3-jupyter-core python3-nbformat python3-plotly
  python3-zope.event python3.8 python3.8-dev python3.8-minimal qt5-gtk2-platformtheme
  ruby-connection-pool ruby-molinillo ruby-net-http-persistent ruby-thor
  xfce4-mailwatch-plugin xfce4-smartbookmark-plugin xfce4-statusnotifier-plugin
  xfce4-weather-plugin
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 221 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up realtek-rtl8814au-dkms (5.8.5.1~git20210331.bdf80b5-0kali1) ...
Removing old realtek-rtl8814au-5.8.5.1~git20210331.bdf80b5 DKMS files...

------------------------------
Deleting module version: 5.8.5.1~git20210331.bdf80b5
completely from the DKMS tree.
------------------------------
Done.                                                                                     
Loading new realtek-rtl8814au-5.8.5.1~git20210331.bdf80b5 DKMS files...                   
It is likely that 5.4.83-Re4son-v8l+ belongs to a chroot's host                           
Building for 5.4.83-Re4son+, 5.4.83-Re4son-v7+, 5.4.83-Re4son-v7l+, 5.4.83-Re4son-v8+ and 5.4.83-Re4son-v8l+                                                                        
Module build for kernel 5.4.83-Re4son+ was skipped since the                              
kernel headers for this kernel does not seem to be installed.                             
Module build for kernel 5.4.83-Re4son-v7+ was skipped since the                           
kernel headers for this kernel does not seem to be installed.                             
Module build for kernel 5.4.83-Re4son-v7l+ was skipped since the                          
kernel headers for this kernel does not seem to be installed.                             
Building initial module for 5.4.83-Re4son-v8+                                             
Error! Bad return status for module build on kernel: 5.4.83-Re4son-v8+ (aarch64)          
Consult /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20210331.bdf80b5/build/make.log for more information.                                                                            
dpkg: error processing package realtek-rtl8814au-dkms (--configure):
 installed realtek-rtl8814au-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of realtek-rtl88xxau-dkms:
 realtek-rtl88xxau-dkms depends on realtek-rtl8814au-dkms; however:
  Package realtek-rtl8814au-dkms is not configured yet.

dpkg: error processing package realtek-rtl88xxau-dkms (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 realtek-rtl8814au-dkms
 realtek-rtl88xxau-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-smbus is already the newest version (4.2-2).
The following packages were automatically installed and are no longer required:
  cryptsetup-run exfat-fuse gir1.2-gst-plugins-base-1.0 gir1.2-keybinder-3.0
  gnome-session-canberra gstreamer1.0-pulseaudio kazam libboost-iostreams1.71.0
  libboost-thread1.71.0 libcapstone3 libcrypto++6 libdap25 libdav1d4 libepsilon1
  libgdal27 libgeos-3.8.1 libidn11 libjs-sizzle libjsoncpp1 libllvm10 libmicrohttpd12
  libntfs-3g883 libomp-9-dev libomp5-9 libperl5.30 libplymouth4 libpython3.8
  libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib libradare2-4.3.1 libre2-8
  libreadline5 librest-0.7-0 libsane libssl1.0.2 libwireshark13 libwiretap10 libwsutil11
  libxcb-util0 libyara4 node-jquery perl-modules-5.30 python-babel-localedata
  python3-atomicwrites python3-babel python3-gevent python3-greenlet
  python3-ipython-genutils python3-jupyter-core python3-nbformat python3-plotly
  python3-zope.event python3.8 python3.8-dev python3.8-minimal qt5-gtk2-platformtheme
  ruby-connection-pool ruby-molinillo ruby-net-http-persistent ruby-thor
  xfce4-mailwatch-plugin xfce4-smartbookmark-plugin xfce4-statusnotifier-plugin
  xfce4-weather-plugin
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 221 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up realtek-rtl8814au-dkms (5.8.5.1~git20210331.bdf80b5-0kali1) ...
Removing old realtek-rtl8814au-5.8.5.1~git20210331.bdf80b5 DKMS files...

------------------------------
Deleting module version: 5.8.5.1~git20210331.bdf80b5
completely from the DKMS tree.
------------------------------
Done.
Loading new realtek-rtl8814au-5.8.5.1~git20210331.bdf80b5 DKMS files...
It is likely that 5.4.83-Re4son-v8l+ belongs to a chroot's host
Building for 5.4.83-Re4son+, 5.4.83-Re4son-v7+, 5.4.83-Re4son-v7l+, 5.4.83-Re4son-v8+ and 5.4.83-Re4son-v8l+
Module build for kernel 5.4.83-Re4son+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.4.83-Re4son-v7+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.4.83-Re4son-v7l+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 5.4.83-Re4son-v8+
Error! Bad return status for module build on kernel: 5.4.83-Re4son-v8+ (aarch64)
Consult /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20210331.bdf80b5/build/make.log for more information.
dpkg: error processing package realtek-rtl8814au-dkms (--configure):
 installed realtek-rtl8814au-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of realtek-rtl88xxau-dkms:
 realtek-rtl88xxau-dkms depends on realtek-rtl8814au-dkms; however:
  Package realtek-rtl8814au-dkms is not configured yet.

dpkg: error processing package realtek-rtl88xxau-dkms (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 realtek-rtl8814au-dkms
 realtek-rtl88xxau-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
*****************************************************
Step 2 - generating /etc/argononed.conf
*****************************************************
*****************************************************
Step 3 - generating /lib/systemd/system-shutdown/argononed-poweroff.py           
*****************************************************
*****************************************************
Step 4 - generating /usr/bin/argononed.py
*****************************************************
*****************************************************
Step 5 - generating /lib/systemd/system/argononed.service
*****************************************************
*****************************************************
Step 6 - generating /usr/bin/argonone-uninstall
*****************************************************
*****************************************************
Step 7 - generating /usr/bin/argonone-config
*****************************************************
--2021-10-03 06:19:23--  http://download.argon40.com/ar1config.png
Resolving download.argon40.com (download.argon40.com)... 206.198.226.3
Connecting to download.argon40.com (download.argon40.com)|206.198.226.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 119697 (117K) [image/png]
Saving to: ‘/usr/share/pixmaps/ar1config.png’

/usr/share/pixmaps/ar1 100%[==========================>] 116.89K   160KB/s    in 0.7s    

2021-10-03 06:19:25 (160 KB/s) - ‘/usr/share/pixmaps/ar1config.png’ saved [119697/119697]

--2021-10-03 06:19:25--  http://download.argon40.com/ar1uninstall.png
Resolving download.argon40.com (download.argon40.com)... 206.198.226.3
Connecting to download.argon40.com (download.argon40.com)|206.198.226.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 120571 (118K) [image/png]
Saving to: ‘/usr/share/pixmaps/ar1uninstall.png’

/usr/share/pixmaps/ar1 100%[==========================>] 117.75K   156KB/s    in 0.8s    

2021-10-03 06:19:26 (156 KB/s) - ‘/usr/share/pixmaps/ar1uninstall.png’ saved [120571/120571]

*****************************************************
Step 8 (extra) - generating /usr/bin/argonone-tempmon
*****************************************************
***************************
Argon One Setup Completed.
***************************

Use argonone-config to configure fan
Use argonone-uninstall to uninstall
Use argonone-tempmon to monitor the temperature

1 Like

Regarding: [quote=“BryceT, post:2, topic:11664”]
sudo i2cdetect -y 1
[/quote]

I receive the following - Could that be because i am Booting off a MicroSD using PINN and then loading it off a SSD?:

kali@kali:~$ sudo i2cdetect -y 1 
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
1 Like

Sorry, forgot to mention, the I do hear the fan spinning when i reboot/first power on - so i suspect its not an issue with the physical case itself, and more to do with just a config issue - though could be wrong as this is all new to me.

1 Like

Update All - For anyone else with the same issue,
I came across a link and did as suggested, Fan is working now.
The closest i could find was - dtparam=i2c_arm=on - so I un-commented it, and it appears to work.
Not too sure if it will cause any other harm, though as I’m just learning & testing with it and nothing business critical is being done, it should be fine.

LinkToSuggestion

3 Likes