On Sat, 2015-08-15 at 11:22 +0200, Michele Cane wrote:
> Package: qcontrol
> Version: 0.5.4-5
> Severity: normal
> 
> Dear Maintainer,

Thanks for the report.

> starting with kernel 4.0 when I issue the command "sudo lcd-backlight off" it 
> results in a Command not found.
> I tried other qcontrol commnands such as shortbuzz and usbled and they work.
> 
> If I revert to kernel 3.16 the command works.

This suggests that the a125 module is not being loaded.

In your qcontrol.conf there should be a:

    gpio_select(45, {
            function () register("a125", "/dev/ttyS0") end,
            nil,
            nil})

Which registers the module if gpio 45 is in the appropriate state.

Unfortunately I've gone away and left my QNAP box at home turned off :-/

So a few questions:

Are there any messages in daemon.log relating to qcontrol and startup?

Do you have a /dev/ttyS0 device?

Do you have "/sys/class/gpio/gpio45/value" or the
"/sys/class/gpio/gpio45" directory generally? If not then does "echo 45
> /sys/class/gpio/export" cause those to appear?

If you replace the whole gpio_select block with just the:
    register("a125", "/dev/ttyS0")
bit (i.e. register it unconditionally) then does it work? This would
indicate that gpio_select has been broken somehow.

It's possible that what we have here is a race with the device nodes
being created vs qcontrol starting. This was supposed to have been
worked around by #781886 though.

Ian.

Reply via email to