T420s FreeBSD-11 upgrade

rdeiriar

Member

Thanks: 11
Messages: 25

#1
After upgrading my T420s (https://forums.freebsd.org/threads/17308/page-5#post-324950) to FreeBSD-11-BETA2 I thought it would be worthwhile to share my findings. The process was mostly painless, except for the two points below. It should be noted that, on my machine, the power usage when idle improved from 14-15w to 12-13w, a noticeable advantage

1. Beware of the bootloader if using UEFI with ZFS

If you have just migrated to an UEFI system, like I have, when updating the bootloader after upgrading the ZFS pool, you are likely to make the same mistake that I did, gpart bootcode.... will happily render the system unbootable. The UEFI way is to copy the efi bootloader to the efi boot partition on the boot device, in my case, ada0

dd if=/boot/boot1.efifat of=/dev/ada0p1

2. acpi_ibm requires flags for the sleep button to work

Add dev.acpi_ibm.0.handlerevents='0x04' to /etc/sysctl.conf
 

Atsuri

Active Member

Thanks: 23
Messages: 137

#2
2. acpi_ibm requires flags for the sleep button to work

Add dev.acpi_ibm.0.handlerevents='0x04' to /etc/sysctl.conf
I am somewhat interested in Thinkpads as solid business/IT computers. Do all the other hotkeys for brightness, volume, bluetooth, etc. work out-of-the-box on your T420 with FreeBSD-11-BETA2? I just read the manpage for acpi_ibm() and supposedly multiple acpi events can be set via *.handlerevents.
 
OP
OP
R

rdeiriar

Member

Thanks: 11
Messages: 25

#3
The t420s works very well with FreeBSD 11, the only piece of hardware that i have not tried is the integrated webcam.
The following hotkeys work on mine

Volume
Mute
Brightness
Led
Sleep

Minimum energy usage when doing casual things like writing this answer and reading FreeBSD's mailing lists is below 12w, thus giving a very reasonable 2 to 3 hours on battery
I'm very pleased with this little machine, so much that i cannot think of any reason not to recommend it for FreeBSD
 

Seagate

Member


Messages: 20

#5
After upgrading my T420s (https://forums.freebsd.org/threads/17308/page-5#post-324950) to FreeBSD-11-BETA2 I thought it would be worthwhile to share my findings. The process was mostly painless, except for the two points below. It should be noted that, on my machine, the power usage when idle improved from 14-15w to 12-13w, a noticeable advantage

1. Beware of the bootloader if using UEFI with ZFS

If you have just migrated to an UEFI system, like I have, when updating the bootloader after upgrading the ZFS pool, you are likely to make the same mistake that I did, gpart bootcode.... will happily render the system unbootable. The UEFI way is to copy the efi bootloader to the efi boot partition on the boot device, in my case, ada0

dd if=/boot/boot1.efifat of=/dev/ada0p1

2. acpi_ibm requires flags for the sleep button to work

Add dev.acpi_ibm.0.handlerevents='0x04' to /etc/sysctl.conf

I am thinkpad T420 user with freebsd 11, may i know suspend and resume have run on your laptop ?
i've suspend but resuming in black screen.
 

aragats

Aspiring Daemon

Thanks: 349
Messages: 875

#6
If you're talking about suspend to RAM (sleep), it works fine in my ThinkPad T430.
Code:
# acpiconf -s 3
No tweaks are needed.
 

aragats

Aspiring Daemon

Thanks: 349
Messages: 875

#10
What video card do you have? Is it embedded Intel? If yes, do you have in your /boot/loader.conf
Code:
i915kms_load="YES"
 

Seagate

Member


Messages: 20

#11
What video card do you have? Is it embedded Intel? If yes, do you have in your /boot/loader.conf
Code:
i915kms_load="YES"
Ok i've to try. my t420 have two gpu card. nvidia and intel, now i use intel. nvidia not loaded in /boot/loader.conf and not enabled in /etc/rc.conf.

updated : still not work, resume still black screen

here's part of my /boot/loader.conf
Code:
#linux_load="YES"
#nvidia_load="YES"
kern.vty=vt
hw.vga.textmode="1"

acpi_ibm_load="YES"
acpi_video_loads="YES"
hw.psm.synaptics_support="1"
drm.i915.enable_rc6=7
i915kms_load="YES"

fuse_load="YES"
sound_enable="YES"
snd_hda_load="YES"
if_iwn_load="YES"
my /etc/sysctl.conf
Code:
hw.acpi.reset_video=0
hw.acpi.lid_switch_state=S3
hw.acpi.sleep_button_state=S3
hw.acpi.power_button_state=S5
hw.acpi.sleep_delay=3
hw.acpi.verbose=1
hw.syscons.sc_no_suspend_vtswitch=0
dev.acpi_ibm.0.events=1
 

aragats

Aspiring Daemon

Thanks: 349
Messages: 875

#14
Seagate , in my /etc/sysctl.conf I have only:
Code:
dev.acpi_ibm.0.handlerevents='0x04'
(and a couple of touchpad related lines).In my /boot/loader.conf the only related line is
Code:
acpi_ibm_load="YES"
 

Seagate

Member


Messages: 20

#15
Seagate , in my /etc/sysctl.conf I have only:
Code:
dev.acpi_ibm.0.handlerevents='0x04'
(and a couple of touchpad related lines).In my /boot/loader.conf the only related line is
Code:
acpi_ibm_load="YES"
i'll try to add
dev.acpi_ibm.0.handlerevents='0x04' and acpi_ibm_load="YES"
, there may be a match configuration between T420 and T430 :D
 
Top