Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176158

**MY INTERIM NOTES** Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject **MY INTERIM NOTES** Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad
Date 2016-12-31 15:40 +0100
Message-ID <sUsZb-49f-13@gated-at.bofh.it> (permalink)
References <sUnZv-12i-1@gated-at.bofh.it> <sUp5f-1EU-1@gated-at.bofh.it> <sUrqp-32Y-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/31/2016 6:50 AM, Richard Owlett wrote:
> On 12/31/2016 4:26 AM, Thomas Schmitt wrote:
>> Hi,
>>
>> Richard Owlett wrote:
>>> # echo level 4 > /proc/acpi/ibm/fan (medium speed)
>>> which resulted in
>>> bash: echo: write error: invalid argument
>>
>> If you added "(medium speed)" to the command line, then this
>> would be wrong.
>> But i get
>>    -bash: syntax error near unexpected token `('
>> when i try to do this with a regular file address after ">".
>>
>> By googling i found this candidate:
>>
>>
>> http://unix.stackexchange.com/questions/82246/how-to-control-thinkpad-acpi-via-procfs-rhel-6-4
>>
>>
>>    "# echo 5 >/proc/acpi/ibm/fan
>>     bash: echo: write error: Invalid argument"
>>
>>    "Fan control operations are disabled by default for safety
>> reasons.
>>     To enable fan control, the module parameter fan_control=1
>> must be given
>>     to thinkpad-acpi. [... detailed instructions ...]"
>>
>>    "Thanks, that was it."
>>
>>
>>> I suspect the error messages I quoted in my original post give
>>> the needed
>>> information.
>>> ... > "thinkfan post installation script returned error exit
>>> status 1".
>>> ... > "attempted to reinstall E: Internal Error, No file name
>>> for thinkfan:i386".
>>
>> One should of course try to find out what is supposed to be
>> installed
>> by package "thinkfan" and why your Debian does not find it on the
>> attempt to install it explicitely.
>> There is a package "thinkfan" and it gets built for i386:
>>    https://buildd.debian.org/status/package.php?p=thinkfan
>>
>>
>> https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html
>>
>> at the end of paragraph 7.6 says that the failed "post
>> installation script"
>> should be on your machine in
>>    /var/lib/dpkg/info/thinkfan.postinst
>>
>> So what do you get from
>>    ls /var/lib/dpkg/info/thinkfan.*
>>
>> If there is a thinkfan.postinst : What is its content ?
>>
>>
>> *.postinst in general riddles me. I can see a file
>> acpi-support-base.postinst
>> in
>>    https://sources.debian.net/src/acpi-support/0.142-8/debian/
>> but no bc.postinst in
>>    https://sources.debian.net/src/bc/1.06.95-9/debian/
>> although both .postinst files exist on my Debian 8.
>> The ./debian directory of package "thinkfan"
>>    https://sources.debian.net/src/thinkfan/0.9.3-1/debian/
>> does not have a file thinkpad.postinst either.
>> So there seem to be automats which produce .postinst at
>> packaging time.
>>
>> (I need to read more Debian packager manuals ...)
>>
>>
>> Have a nice day :)
>>
>> Thomas
>>
>>
>
>
>
> https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html
> at the end of paragraph 7.6 says that the failed "post
> installation script"
> should be on your machine in
>    /var/lib/dpkg/info/thinkfan.postinst
>
> So what do you get from
>    ls /var/lib/dpkg/info/thinkfan.*
>
> I get:
> root@debian:~# ls /var/lib/dpkg/info/thinkfan.*
> /var/lib/dpkg/info/thinkfan.conffiles
> /var/lib/dpkg/info/thinkfan.postinst
> /var/lib/dpkg/info/thinkfan.list /var/lib/dpkg/info/thinkfan.postrm
> /var/lib/dpkg/info/thinkfan.md5sums
> /var/lib/dpkg/info/thinkfan.prerm
> root@debian:~#
>
>
> If there is a thinkfan.postinst : What is its content ?
>
> It exists and the content is:
> <begin quote>
> #!/bin/sh
> set -e
> # Automatically added by dh_installinit
> if [ -x "/etc/init.d/thinkfan" ]; then
>      update-rc.d thinkfan defaults >/dev/null
>      invoke-rc.d thinkfan start || exit $?
> fi
> # End automatically added section
> </end quote>
>
> Now to read the links you gave.
> Thank you.
>
>
>
>

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad Richard Owlett <rowlett@cloud85.net> - 2016-12-30 18:20 +0100
  Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-12-31 04:10 +0100
    Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad Richard Owlett <rowlett@cloud85.net> - 2016-12-31 10:20 +0100
      Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad "Thomas Schmitt" <scdbackup@gmx.net> - 2016-12-31 11:30 +0100
        Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad Richard Owlett <rowlett@cloud85.net> - 2016-12-31 14:00 +0100
          Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad "Thomas Schmitt" <scdbackup@gmx.net> - 2016-12-31 15:10 +0100
            Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad Richard Owlett <rowlett@cloud85.net> - 2016-12-31 16:00 +0100
              Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad Richard Owlett <rowlett@cloud85.net> - 2017-01-01 17:00 +0100
                INTERIM Resolution - was [Re: Trouble shooting a "thinkfan" problem  on a Lenovo T430 Thinkpad] Richard Owlett <rowlett@cloud85.net> - 2017-01-02 03:20 +0100
                Re: INTERIM Resolution - was [Re: Trouble shooting a "thinkfan"  problem on a Lenovo T430 Thinkpad] Curt <curty@free.fr> - 2017-01-02 13:50 +0100
                Re: INTERIM Resolution - was [Re: Trouble shooting a "thinkfan" problem on a Lenovo T430 Thinkpad] Lisi Reisz <lisi.reisz@gmail.com> - 2017-01-02 14:00 +0100
                Re: INTERIM Resolution - was [Re: Trouble shooting a "thinkfan"  problem on a Lenovo T430 Thinkpad] Anthony Baldwin <baldwinlinguas@gmx.com> - 2017-01-02 14:30 +0100
          **MY INTERIM NOTES** Re: Trouble shooting a "thinkfan" problem on a  Lenovo T430 Thinkpad Richard Owlett <rowlett@cloud85.net> - 2016-12-31 15:40 +0100

csiph-web