I am posting here to help folks who may want to run Hive.OS on their laptop. I am a huge fan of Hive.os. I have just a tiny personal mining farm, but one of my rigs is a ASUS Laptop with a 3070 that was unstable in Windows making it a pain in the butt to mine on. Here is how I got it running on Hive.os and up to par with what I had in Windows 10, but more stable and easier to manage on Hive.
1.) Getting X Server To Start
I initially ran into issues with XServer not starting. I managed to pretty easily resolve this when I checked my xorg.conf file in /etc/X11/xorg.conf file and saw the PCI bus of my GPU was incorrect. The PCI bus in lspci showed 0000:00:02.0 (integrated) and 0000:01:00.0 for my 3070 Max Q, however the xorg.conf file showed 00:00:02 and 00:01:0 incorrectly. I hard coded the correct PCI bus addresses in /hive/bin/xorg-conf
2.) Getting Nvidia-OC working
Pretty much caused by the same issue as the incorrect PCI address above. I updated /hive/sbin/gpu-detect and added the following sed one liner where it was calling lspci:
lspci | grep -E "$GPU_DETECT_STRING"
lspci | grep -E "$GPU_DETECT_STRING" | sed s/0000://
I also added the same sed statement to the lspci line right above this one. This may make the first fix I did above not necessary but I didn’t confirm.
Updated line 258 in nvidia-oc: removed -q parameter for the fan information because of an error querying for the fan speed which is not available in the laptop.
3.) Changed Lid Close Behavior:
Followed the guide here to allow me to run the laptop with the lid closed and additional fan I have blowing down on it:
4.) Downclock the CPU: Since I dual mine ETH and XMR I needed to downclock the CPU. I Followed the guide here to downclock the CPU. Initially the CPU was using the default ‘ondemand’ scaling_governor, however, this was causing the CPU to turbo boost to 3600 MHz and 95 centigrade. I updated the scaling_max_frequency to 3000000 (make sure to choose a valid value of the available frequencies) to downlock the CPU to 3000 MHz and am running at 72C now.
Windows utilities allows you to scale the wattage the Turbo boost is allowed to use (I found about 22Watts in windows 10 was best), but I am not sure how to get that working and it appears to require MSR updates in Linux.