Unrud / init-headphone

Manage the headphone amplifier found in some Clevo laptops
GNU General Public License v3.0
56 stars 7 forks source link

Clevo P775DM3(G) Support Request #12

Open zx1239856 opened 6 years ago

zx1239856 commented 6 years ago

I have tried init-headphone on my p775dm3 with unsuccessful attempt. Audio Codec: ALC898 The information given in the console is listed below: INFO:Version: 0.12 INFO:Trying to add module to the kernel: i2c_dev INFO:Trying to add module to the kernel: i2c_i801 DEBUG:Available i2c busses: ['0000:01:00.0', 'nvkm-0000:01:00.0-aux-0004', 'nvkm-0000:01:00.0-aux-0009', 'nvkm-0000:01:00.0-bus-0002', 'nvkm-0000:01:00.0-aux-0008', 'nvkm-0000:01:00.0-bus-0007', 'nvkm-0000:01:00.0-bus-0006', '0000:01:00.0', 'nvkm-0000:01:00.0-bus-0005', '0000:01:00.0', 'nvkm-0000:01:00.0-bus-0004', 'nvkm-0000:01:00.0-bus-0009', 'nvkm-0000:01:00.0-bus-0001', 'nvkm-0000:01:00.0-aux-0007', 'nvkm-0000:01:00.0-bus-0008', 'nvkm-0000:01:00.0-aux-0006', 'SMBus I801 adapter at f000', 'nvkm-0000:01:00.0-aux-0005'] DEBUG:Supported i2c bus names: ['SMBus I801 adapter'] DEBUG:Selected i2c bus: SMBus I801 adapter at f000 INFO:Opening I2C bus: /dev/i2c-17 INFO:Setting I2C slave address: 115 INFO:Writing byte data on I2C bus: (device_cmd: 0xa, value: 0x41) ERROR:Can't transfer data on I2C bus INFO:Closing I2C bus ERROR:Operation failed DEBUG:Exception occurred: Traceback (most recent call last): File "/usr/local/sbin/init-headphone", line 351, in main() File "/usr/local/sbin/init-headphone", line 309, in main init() File "/usr/local/sbin/init-headphone", line 241, in init set_effect(DEFAULT_EFFECT) File "/usr/local/sbin/init-headphone", line 257, in set_effect DATA_ENABLE_OUTPUT) File "/usr/local/sbin/init-headphone", line 235, in write_data_to_device write_prolog(i2c_bus) File "/usr/local/sbin/init-headphone", line 226, in write_prolog i2c_bus.write_byte_data(0x0a, 0x41) File "/usr/local/sbin/init-headphone", line 143, in write_byte_data self.access(I2C_SMBUS_WRITE, device_cmd, I2C_SMBUS_BYTE_DATA, data) File "/usr/local/sbin/init-headphone", line 135, in access raise OSError(err, os.strerror(err)) OSError: [Errno -1] Unknown error -1