From nobody Tue Jul 30 17:38:19 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WYMrx2527z5Rdl4 for ; Tue, 30 Jul 2024 17:38:25 +0000 (UTC) (envelope-from ea1abz@gmail.com) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYMrw2gZyz4LBK for ; Tue, 30 Jul 2024 17:38:24 +0000 (UTC) (envelope-from ea1abz@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="KIUkp/GC"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ea1abz@gmail.com designates 2a00:1450:4864:20::433 as permitted sender) smtp.mailfrom=ea1abz@gmail.com Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-36841f56cf6so572018f8f.3 for ; Tue, 30 Jul 2024 10:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722361101; x=1722965901; darn=freebsd.org; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=xSdfhD4D4F8SWEhM43cu2eMBIlV4+pIe+t2AVOnh8PM=; b=KIUkp/GCxKWgSHGd3vCp7q+AF5NlUSeu5vpmWYSwfjBoGysFxcEOEbxpw89ujeXARy TgP0m8iDZLR8iRB0FpvxRo1RS1TsvIyI6HZLN10GmOSr0OXcTAeN38oWzAME/bgg7TGN YEJre65lZIedzYC/TaFNz4CKimrN/mmvUbcqma768DqFXvIb/tg12sLnCJjxx/mjCIQr V/XZ0HLthDBFqurum2GnNizvALZVZkVzrH4dRayiC89CHgx5QfVV5AtClWiO3BkbZTMp f+D/W03UPcv9/8u2KAbGvN0w1VV83cZaMntnxYQEJO9igoUgnsAwVmzsIuC4R5zXj322 r+Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722361101; x=1722965901; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=xSdfhD4D4F8SWEhM43cu2eMBIlV4+pIe+t2AVOnh8PM=; b=R9A1xNXzokjXwSYnh9LqcX6XGhp3MMZ57YXOZr2/no7Qx7tLydXtEPRss4hX9gnElH Ny+CgL2YNpgA2Jv/NsGzMYUSFGKK2yos/KYp6ZacdF4ijcs4xmEfd9XqqTVQBScKkAMA tsED7us4ZE22pRK0c4gE1v21p265mHqF/rFRVesiJmXQpKoLNODGp6/J/2nArJcX8xjZ htJFbN1iJl0rqorKDaJRXLJFASgka4hT8qQqe3EeYs9fVLP+CdFATi8rhbuQxwRBbq1V Wjn0IHZXCTxI7JXm35Z8ThcV2PZM5JJVQ4mSpGn5yhvb2OXcdOJO7qFZRKsTm7yAyKdp ByVg== X-Gm-Message-State: AOJu0Yzz2QiHx1eC0p5k61J93Zn/J2rrTPOTbSPrGeD8c68G0duY86PS SP6Uei8fP3H+hmm4597dHqr/Ir6oKVVi260Zhn9Nsl7I2Xx0Y6K6RdT2cZIs X-Google-Smtp-Source: AGHT+IGHwgH9MAQdo8VmLstCDzivPe7JxsNF83FavdJlsZONV5xsCZRNGdiy7413ckgaCq+j0S+WPw== X-Received: by 2002:a5d:6c68:0:b0:368:4e31:7735 with SMTP id ffacd0b85a97d-36b34e7d6e6mr8223324f8f.9.1722361100364; Tue, 30 Jul 2024 10:38:20 -0700 (PDT) Received: from [192.168.1.204] (175.38.11.37.dynamic.jazztel.es. [37.11.38.175]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36857ec5sm15270334f8f.74.2024.07.30.10.38.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jul 2024 10:38:19 -0700 (PDT) Message-ID: <7eadcdb2-cd80-4344-8bcd-a474c7496696@gmail.com> Date: Tue, 30 Jul 2024 19:38:19 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: freebsd-questions@freebsd.org Content-Language: en-US From: Ramiro Aceves Subject: acpi_ibm Thinkpad x260 does not work for screen brightness Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.979]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::433:from] X-Rspamd-Queue-Id: 4WYMrw2gZyz4LBK Hello. I have just installed FreeBSD in a lenovo Thinkpad x260 laptop and XFCE desktop. Congrats to the developers for this very good operating system! Everything seems to work fine except for hotkeys. Fn+F5 (brightness down) and Fn+F6 (brightness down) do not work. After reading some info on internet, I arrived to the acpi_ibm man page. I have been strugling with this for a couple of days and I cannot solve it. root@freebsd-x260:/home/ramiro # kldstat |grep acpi  9    1 0xffffffff82d8b000     3390 acpi_wmi.ko root@freebsd-x260:/home/ramiro # kldload acpi_ibm root@freebsd-x260:/home/ramiro # kldstat |grep acpi  9    1 0xffffffff82d8b000     3390 acpi_wmi.ko 26    1 0xffffffff82e85000     41e0 acpi_ibm.ko root@freebsd-x260:/home/ramiro # sysctl dev.acpi_ibm.0.lcd_brightness dev.acpi_ibm.0.lcd_brightness: 0 root@freebsd-x260:/home/ramiro # sysctl dev.acpi_ibm.0.lcd_brightness=7 dev.acpi_ibm.0.lcd_brightness: 0 -> 7 root@freebsd-x260:/home/ramiro # sysctl dev.acpi_ibm.0.lcd_brightness dev.acpi_ibm.0.lcd_brightness: 7 root@freebsd-x260:/home/ramiro # sysctl dev.acpi_ibm.0.lcd_brightness=8 dev.acpi_ibm.0.lcd_brightness: 7 sysctl: dev.acpi_ibm.0.lcd_brightness=8: Invalid argument 8 seems to be the maximum value. But I do not see any change in screen brightness. I have also been playing with acpi_video driver and associated sysctl variables and it does not work: root@freebsd-x260:/home/ramiro # kldload acpi_video root@freebsd-x260:/home/ramiro # kldstat |grep acpi  9    1 0xffffffff82d8b000     3390 acpi_wmi.ko 26    1 0xffffffff82e85000     41e0 acpi_ibm.ko 27    1 0xffffffff82e8a000     4388 acpi_video.ko root@freebsd-x260:/home/ramiro # sysctl hw.acpi.video.lcd0.brightness hw.acpi.video.lcd0.brightness: 100 root@freebsd-x260:/home/ramiro # sysctl hw.acpi.video.lcd0.brightness=50 hw.acpi.video.lcd0.brightness: 100 -> 50 root@freebsd-x260:/home/ramiro # sysctl hw.acpi.video.lcd0.brightness hw.acpi.video.lcd0.brightness: 50 root@freebsd-x260:/home/ramiro # sysctl hw.acpi.video.lcd0.brightness=10 hw.acpi.video.lcd0.brightness: 50 -> 10 root@freebsd-x260:/home/ramiro # sysctl hw.acpi.video.lcd0.brightness hw.acpi.video.lcd0.brightness: 10 Also I do not see any change y brightness levels. In this computer I have Debian and NetBSD installed and brightness adjustment works fine, so it is not a hw problem. (I need the 3 operating systems to help to the developing of SDR radio program called Linrad.) Thanks so much in advance. Regards. Ramiro.