Last active
September 9, 2021 06:58
-
-
Save nayaabkhan/bc655918c1592537f698fc4964b0e651 to your computer and use it in GitHub Desktop.
FreeBSD installation log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export methods="\_SB.PCI0.PEG0.PEGP._PS3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Design capacity: 7394 mAh | |
| Last full capacity: 6641 mAh | |
| Technology: secondary (rechargeable) | |
| Design voltage: 11400 mV | |
| Capacity (warn): 739 mAh | |
| Capacity (low): 224 mAh | |
| Low/warn granularity: 73 mAh | |
| Warn/full granularity: 73 mAh | |
| Model number: DELL 70N2F95 | |
| Serial number: 218 | |
| Type: LiP | |
| OEM info: SMP | |
| State: discharging | |
| Remaining capacity: 62% | |
| Remaining time: 2:20 | |
| Present rate: 1758 mA (20023 mW) | |
| Present voltage: 11390 mV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dev.cpu.11.temperature: 42.0C | |
| dev.cpu.10.temperature: 42.0C | |
| dev.cpu.9.temperature: 43.0C | |
| dev.cpu.8.temperature: 42.0C | |
| dev.cpu.7.temperature: 43.0C | |
| dev.cpu.6.temperature: 43.0C | |
| dev.cpu.5.temperature: 44.0C | |
| dev.cpu.4.temperature: 44.0C | |
| dev.cpu.3.temperature: 43.0C | |
| dev.cpu.2.temperature: 43.0C | |
| dev.cpu.1.temperature: 43.0C | |
| dev.cpu.0.temperature: 43.0C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fetch latest updates | |
| freebsd-update fetch | |
| # and install them | |
| freebsd-update intstall | |
| # install pkg and run update | |
| pkg update | |
| # install the video drivers for Intel | |
| pkg install drm-kmod | |
| # load them in the /etc/rc.conf | |
| sysrc kld_list="i915kms" | |
| # add user to video group to allow video to work | |
| pw group mod video -m nayaabkhan | |
| # enable module to read temperatures | |
| echo 'coretemp_load="YES"' >> /boot/loader.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| coretemp_load="YES" | |
| hint.hwpstate_intel.0.disabled=1 | |
| compat.linuxkpi.i915_enable_dc=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear_tmp_enable="YES" | |
| sendmail_enable="NONE" | |
| hostname="dellbsd" | |
| wlans_rtwn0="wlan0" | |
| ifconfig_wlan0="WPA DHCP" | |
| ifconfig_wlan0_ipv6="inet6 accept_rtadv" | |
| sshd_enable="YES" | |
| ntpd_enable="YES" | |
| powerd_enable="YES" | |
| powerd_flags="-M 1200" | |
| # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable | |
| dumpdev="AUTO" | |
| kld_list="/boot/modules/i915kms.ko" | |
| performance_cx_lowest="C3" | |
| economy_cx_lowest="C3" | |
| nvidia_xorg_enable="YES" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # $FreeBSD$ | |
| # | |
| # This file is read when going to multi-user and its contents piped thru | |
| # ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details. | |
| # | |
| # Uncomment this to prevent users from seeing information about processes that | |
| # are being run under another UID. | |
| #security.bsd.see_other_uids=0 | |
| hw.nvidia.registry.DynamicPowerManagement=1 | |
| hw.nvidia.registry.EnableS0ixPowerManagement=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| usage() { | |
| printf "Usage:\t$0\n" | |
| printf "\tMust be run as root\n" | |
| } | |
| [ "`whoami`" != "root" ] && usage && exit 1 | |
| kldstat -q -n acpi_call.ko | |
| MODULE_LOADED=$? | |
| if [ $MODULE_LOADED != "0" ]; then | |
| echo "The acpi_call module is not loaded, try running `kldload acpi_call` as root" | |
| exit 1 | |
| fi | |
| if [ -f ~/.gpu_method ]; then | |
| echo "Using previously stored method, as it was previously successful..." | |
| . ~/.gpu_method | |
| else | |
| methods=" | |
| \_SB.PCI0.PEG0.PEGP.ATPX | |
| \_SB.PCI0.PEG0.PEGP.XTPX | |
| \_SB.PCI0.PEG0.PEGP.DOFF | |
| \_SB.PCI0.PEG0.PEGP.DGOF | |
| \_SB.PCI0.PEG0.PEGP.P3MO | |
| \_SB.PCI0.PEG0.PEGP._T_0 | |
| \_SB.PCI0.PEG0.PEGP._OFF | |
| \_SB.PCI0.PEG0.PEGP.SGOF | |
| \_SB.PCI0.PEG0.PEGP.PX02 | |
| \_SB.PCI0.PEG0.PEGP._PS3 | |
| " | |
| fi | |
| for m in $methods; do | |
| echo -n "Trying $m: " | |
| /usr/local/sbin/acpi_call -p $m -o i | |
| result=$? | |
| case "$result" in | |
| 0) | |
| echo "Call succeeded!" | |
| if [ ! -f ~/.gpu_method ]; | |
| then | |
| echo "Storing $m in ~/.gpu_method for reusal" | |
| echo "export methods=\"$m\"" > ~/.gpu_method | |
| fi | |
| break | |
| ;; | |
| *) | |
| echo "failed, continuing" | |
| ;; | |
| esac | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| usage() { | |
| printf "Usage:\t$0\n" | |
| printf "\tMust be run as root\n" | |
| } | |
| [ "`whoami`" != "root" ] && usage && exit 1 | |
| kldstat -q -n acpi_call.ko | |
| MODULE_LOADED=$? | |
| if [ $MODULE_LOADED != "0" ]; then | |
| echo "The acpi_call module is not loaded, try running `kldload acpi_call` as root" | |
| exit 1 | |
| fi | |
| if [ -f ~/.gpu_method ]; then | |
| echo "Using previously stored method, as it was previously successful..." | |
| . ~/.gpu_method | |
| else | |
| methods=" | |
| \_SB.PCI0.P0P1.VGA._OFF | |
| \_SB.PCI0.P0P2.VGA._OFF | |
| \_SB_.PCI0.OVGA.ATPX | |
| \_SB_.PCI0.OVGA.XTPX | |
| \_SB.PCI0.P0P3.PEGP._OFF | |
| \_SB.PCI0.P0P2.PEGP._OFF | |
| \_SB.PCI0.P0P1.PEGP._OFF | |
| \_SB.PCI0.MXR0.MXM0._OFF | |
| \_SB.PCI0.PEG1.GFX0._OFF | |
| \_SB.PCI0.PEG0.GFX0.DOFF | |
| \_SB.PCI0.PEG1.GFX0.DOFF | |
| \_SB.PCI0.PEG0.PEGP._OFF | |
| \_SB.PCI0.XVR0.Z01I.DGOF | |
| \_SB.PCI0.PEGR.GFX0._OFF | |
| \_SB.PCI0.PEG.VID._OFF | |
| \_SB.PCI0.PEG0.VID._OFF | |
| \_SB.PCI0.P0P2.DGPU._OFF | |
| \_SB.PCI0.P0P4.DGPU.DOFF | |
| \_SB.PCI0.IXVE.IGPU.DGOF | |
| \_SB.PCI0.RP00.VGA._PS3 | |
| \_SB.PCI0.RP00.VGA.P3MO | |
| \_SB.PCI0.GFX0.DSM._T_0 | |
| \_SB.PCI0.LPC.EC.PUBS._OFF | |
| \_SB.PCI0.P0P2.NVID._OFF | |
| \_SB.PCI0.P0P2.VGA.PX02 | |
| \_SB_.PCI0.PEGP.DGFX._OFF | |
| \_SB_.PCI0.VGA.PX02 | |
| \_SB.PCI0.PEG0.PEGP.SGOF | |
| \_SB.PCI0.AGP.VGA.PX02 | |
| " | |
| fi | |
| for m in $methods; do | |
| echo -n "Trying $m: " | |
| /usr/local/sbin/acpi_call -p $m -o i | |
| result=$? | |
| case "$result" in | |
| 0) | |
| echo "Call succeeded!" | |
| if [ ! -f ~/.gpu_method ]; | |
| then | |
| echo "Storing $m in ~/.gpu_method for reusal" | |
| echo "export methods=\"$m\"" > ~/.gpu_method | |
| fi | |
| break | |
| ;; | |
| *) | |
| echo "failed, continuing" | |
| ;; | |
| esac | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment