Comments (18)
-100 accords to (we should be probably more specifically tell the error)
//Headset offline
if (data_read[2] == 0xFF)
return HSC_ERROR
Can you try restarting the headset and plugging usb out and in?
If that does not help, comment the lines 78 and 79 in src/devices/logitech_g533.c out, recompile and report back.
from headsetcontrol.
@Sapd thank for your awesome help.
Un-plugging and plugging the -b works, but if -s is used show me the new error(with the lines commented):
Failed to request battery. Error: -48: (null)
I'm using Arch Linux and my HeadSet have 1-day of use
from headsetcontrol.
from headsetcontrol.
What happens when you set MSG_SIZE
on line 31 to 12 and recompile? (I changed it recently).
Otherwise @giuseppeM99 implemented the device, I can't be of any more help as I don't own it.
from headsetcontrol.
[lucas@majestic build]:$ cmake ..
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found HIDAPI: /usr/lib/libhidapi-hidraw.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lucas/github/HeadsetControl/build
[lucas@majestic build]:$ make
Scanning dependencies of target headsetcontrol
[ 10%] Building C object CMakeFiles/headsetcontrol.dir/src/main.c.o
[ 20%] Building C object CMakeFiles/headsetcontrol.dir/src/device_registry.c.o
[ 30%] Building C object CMakeFiles/headsetcontrol.dir/src/utility.c.o
[ 40%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/corsair_void.c.o
[ 50%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g930.c.o
[ 60%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g430.c.o
[ 70%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g533.c.o
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c: In function ‘g533_send_sidetone’:
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:100: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:100: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:103: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:103: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:106: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:106: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:109: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:109: note: (near initialization for ‘data’)
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/headsetcontrol.dir/build.make:141: CMakeFiles/headsetcontrol.dir/src/devices/logitech_g533.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:388: CMakeFiles/headsetcontrol.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
from headsetcontrol.
What happens when you set
MSG_SIZE
on line 31 to 12 and recompile? (I changed it recently).Otherwise @giuseppeM99 implemented the device, I can't be of any more help as I don't own it.
Ok, I try to clone giuseppeM99/HeadsetControl right?
from headsetcontrol.
Same error, BTW, @giuseppeM99 don't have issues on repo page.
from headsetcontrol.
What happens when you set
MSG_SIZE
on line 31 to 12 and recompile? (I changed it recently).
Otherwise @giuseppeM99 implemented the device, I can't be of any more help as I don't own it.Ok, I try to clone giuseppeM99/HeadsetControl right?
No, I mean you’d have to wait for an answer of him, if he is aware/has time.
[lucas@majestic build]:$ cmake ..
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found HIDAPI: /usr/lib/libhidapi-hidraw.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lucas/github/HeadsetControl/build
[lucas@majestic build]:$ make
Scanning dependencies of target headsetcontrol
[ 10%] Building C object CMakeFiles/headsetcontrol.dir/src/main.c.o
[ 20%] Building C object CMakeFiles/headsetcontrol.dir/src/device_registry.c.o
[ 30%] Building C object CMakeFiles/headsetcontrol.dir/src/utility.c.o
[ 40%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/corsair_void.c.o
[ 50%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g930.c.o
[ 60%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g430.c.o
[ 70%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g533.c.o
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c: In function ‘g533_send_sidetone’:
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:100: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:100: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:103: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:103: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:106: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:106: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:109: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:109: note: (near initialization for ‘data’)
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/headsetcontrol.dir/build.make:141: CMakeFiles/headsetcontrol.dir/src/devices/logitech_g533.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:388: CMakeFiles/headsetcontrol.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Some lines below is the data variable, delete the four 0 after num
from headsetcontrol.
What happens when you set
MSG_SIZE
on line 31 to 12 and recompile? (I changed it recently).
Otherwise @giuseppeM99 implemented the device, I can't be of any more help as I don't own it.Ok, I try to clone giuseppeM99/HeadsetControl right?
No, I mean you’d have to wait for an answer of him, if he is aware/has time.
[lucas@majestic build]:$ cmake ..
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found HIDAPI: /usr/lib/libhidapi-hidraw.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lucas/github/HeadsetControl/build
[lucas@majestic build]:$ make
Scanning dependencies of target headsetcontrol
[ 10%] Building C object CMakeFiles/headsetcontrol.dir/src/main.c.o
[ 20%] Building C object CMakeFiles/headsetcontrol.dir/src/device_registry.c.o
[ 30%] Building C object CMakeFiles/headsetcontrol.dir/src/utility.c.o
[ 40%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/corsair_void.c.o
[ 50%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g930.c.o
[ 60%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g430.c.o
[ 70%] Building C object CMakeFiles/headsetcontrol.dir/src/devices/logitech_g533.c.o
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c: In function ‘g533_send_sidetone’:
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35100 error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35100 note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:103: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:103: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:106: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:106: note: (near initialization for ‘data’)
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:109: error: excess elements in array initializer [-Werror]
35 | uint8_t data[MSG_SIZE] = { 0xFF, 0x0B, 0, 0xFF, 0x04, 0x0E, 0xFF, 0x05, 0x01, 0x04, 0x00, num, 0, 0, 0, 0 };
| ^
/home/lucas/github/HeadsetControl/src/devices/logitech_g533.c:35:109: note: (near initialization for ‘data’)
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/headsetcontrol.dir/build.make:141: CMakeFiles/headsetcontrol.dir/src/devices/logitech_g533.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:388: CMakeFiles/headsetcontrol.dir/all] Error 2
make: *** [Makefile:141: all] Error 2Some lines below is the data variable, delete the four 0 after num
Ah! Ok!!! One sec.
from headsetcontrol.
Same.
[lucas@majestic build]:$ sudo /usr/local/bin/headsetcontrol -b
Found Logitech G533!
Failed to request battery. Error: -48: (null)
from headsetcontrol.
I'll try to recreate this issue, can you tell me more about this?
from headsetcontrol.
I'll try to recreate this issue, can you tell me more about this?
Ok.
I'm using Arch Linux and brand new Logitech G533 Wireless Headset.
lsusb: https://termbin.com/3j417
I follow the instructions on README of this repo, and instructions from @Sapd:
git clone https://github.com/Sapd/HeadsetControl
cd HeadsetControl
.. edit files following the instructions on this thread ..
mkdir build && cd build
cmake ..
make
sudo make install
And i got this error.
Before edit i got this error.
Any help is welcome.
from headsetcontrol.
https://asciinema.org/a/294161
from headsetcontrol.
ok, i think this is a standby related issue, try to restart your system and headphones and tell me if it works, i'll try to find a better solution to this issue meanwhile
from headsetcontrol.
ok, i think this is a standby related issue, try to restart your system and headphones and tell me if it works, i'll try to find a better solution to this issue meanwhile
Same error.
from headsetcontrol.
try changing on line 67 from
uint8_t data_request[] =
to
uint8_t data_request[MSG_SIZE] =
recompile and test it
let me know if it works
from headsetcontrol.
uint8_t data_request[MSG_SIZE]
Awesome! Thank you!!!
from headsetcontrol.
from headsetcontrol.
Related Issues (20)
- Add support for SteelSeries Arctis 9X HOT 2
- Should \n be added to short output? HOT 2
- Feature request: get current sidetone level with -s HOT 2
- Support for Logitech G Pro X 2 HOT 6
- Is it possible to get your default sidetone level from somewhere? HOT 2
- Provide signed sources for releases HOT 2
- Corsair HS80 MAX WIRELESS support HOT 1
- Add option to check if headset is connected HOT 3
- Failed to set/request sidetone. Error: -1: ioctl (SFEATURE): Broken pipe HOT 1
- Possibility to add shortcuts with the G733 battery button
- Help with setting up Corsair HS55 Wireless HOT 2
- SteelSeries Arctis 9 not displaying battery when charging HOT 6
- Add support for Logitech H390 HOT 1
- error: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] HOT 2
- Add support for Logitech G435 HOT 9
- Not showing correct battery status HOT 2
- Can not execute any command without sudo privileges HOT 2
- Incorrect ChatMix help message HOT 1
- Integrate with D-Bus / Upower HOT 1
- Error during build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headsetcontrol.