Comments (11)
08aa929 this might fix it. It was hanging on Mac due to the browser keeping connections alive (and the simple web server not handling that). I don't currently have a Linux machine to test.
from gk6x.
Thanks! I thought it was something with it unable to open browser as root, but it turned out it was not the case :). The GUI works now. It doesn't load anything, but I bet it's because the Tronsmarts are not supported there? Anyway, closing this!
from gk6x.
There are updated data files on releases page which includes the Tronsmart files so it should function correctly https://github.com/pixeltris/GK6X/releases/download/GK6X-v1.8/GK6X-v1.8-GUI.zip
from gk6x.
Well, it detects the keyboard just fine:
Connected to device 'TK09R-105 RGB-DE' model:655491211 fw:v1.24
However, GUI on http://localhost:6464/#/ doesn't load anything
I tried copying the driver files from tronsmart radiant drivers, but it gave me a similar issue – a different wallpaper with NO DEVICE
on it.
Does the browser need to be run as root for GUI to work?
from gk6x.
I don't think the browser has to run as root. The GUI from the older versions aren't supported.
Could you see if there are any errors in the browser console output? It should load up to the point of either showing "NO DEVICE" or loading a keyboard.
from gk6x.
Nothing that caught my eye, really. I may try on stock Tronsmart driver later, but here's what I got on GK6X 1.8 GUI from release (I didn't try compiling one myself, but it should be the same):
DevTools failed to load SourceMap: Could not load content for chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/sourcemaps/onloadwff.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
(index):77 onFunc: onGameListChanged function(t){var o=JSON.parse(t);e(null===o?[]:o)}
(index):43 {request: "{"funcname":"ReadFile","Type":0,"Path":"Env.json"}", requestType: "callFunc", token: "08e39cc1-8088-4d38-af8f-d0f947442e40", onSuccess: ƒ, onFailure: ƒ}
index.js?9e44948a8859cab1a24c:6 Call CMS failure! code: 0, message: fail - ReadFile
(index):43 {request: "{"funcname":"GetGameList"}", requestType: "callFunc", token: "08e39cc1-8088-4d38-af8f-d0f947442e40", onFailure: ƒ}
(index):77 onFunc: onDeviceListChanged function(t){var o=JSON.parse(t);console.log(o),e(null===o?[]:o)}
index.js?9e44948a8859cab1a24c:6 init macrolist ok!
index.js?9e44948a8859cab1a24c:6 [{…}]
index.js?9e44948a8859cab1a24c:6 Uncaught TypeError: Cannot read property 'debug' of undefined
at i (index.js?9e44948a8859cab1a24c:6)
at index.js?9e44948a8859cab1a24c:6
at Object.data.onSuccess ((index):408)
at XMLHttpRequest.xhr.onreadystatechange ((index):63)
EDIT: Now I see some file read errors, is it the thing I should try to troubleshoot further?
from gk6x.
So it looks like it's failing to load Env.json which then causes other things to fail when it subsequently tries to access variables set up after reading Env.json.
ReadFile calls out to here which is where it should be fetching the Env.json file
Line 571 in cdcd037
from gk6x.
Oh right file names are case sensitive on Linux and it tries to load 'Env.json' when it's actually called 'env.json'. I'm not sure if there's a way to make C# ignore the casing on files on mono. I guess you could start with changing 'env.json' to 'Env.json' and see how far it gets? If it's the only file with bad casing then it might be an easy fix.
Maybe something like this would do in "ReadFile":
case 0:// Data
switch (path)
{
case "Env.json":
path = path.ToLower();
break;
}
basePath = dataPath;
break;
from gk6x.
Thanks @pixeltris There's some progress now that I renamed the file, but I get this:
vendor.js?a8dab0126e78531e2ea8:1 TypeError: Cannot read property 'img_device' of undefined
at index.js?9e44948a8859cab1a24c:28
at s.Te [as _l] (vendor.js?a8dab0126e78531e2ea8:1)
at s.i (index.js?9e44948a8859cab1a24c:28)
at s.e._render (vendor.js?a8dab0126e78531e2ea8:6)
at s.n (vendor.js?a8dab0126e78531e2ea8:1)
at Xr.get (vendor.js?a8dab0126e78531e2ea8:6)
at Xr.run (vendor.js?a8dab0126e78531e2ea8:6)
at kt (vendor.js?a8dab0126e78531e2ea8:1)
at Array.<anonymous> (vendor.js?a8dab0126e78531e2ea8:1)
at ce (vendor.js?a8dab0126e78531e2ea8:1)
I'll try to see more at it a bit later or tomorrow hopefully
from gk6x.
Possibly more issues with file path casing.
from gk6x.
Possibly more issues with file path casing.
Possibly, yeah. ext4 and f2fs have options to ignore file casing added as of recently, I'll try to check if I can get it running that way, but ideal solution would be to fix it elsewhere :)
EDIT: There's also IOMAP in Mono, but it's been deprecated starting 6.0.0 https://www.mono-project.com/docs/advanced/iomap/
from gk6x.
Related Issues (20)
- my mk61 is not recognized by the software HOT 4
- something wrong HOT 5
- Using the AUR package and general instructions
- support for the hk gaming gk61 v2 (gk61us) please!! HOT 3
- Assign LE files per keypress on the base layer HOT 2
- Issues on GK61 + Ubuntu HOT 2
- How do I use the GKPlus driver to update? HOT 3
- Mapping keys - combine 2 keys to show one HOT 1
- GUI not accessible on Linux, exits silently HOT 2
- Not able to set custom lighting on layers 1-3 HOT 1
- can you show me how to install in ubuntu?
- This doesn't work on my sk61, Linux mint
- doesn't detect my keyboard
- Doesnt work on AK84S HOT 2
- Remap Tilda (~) and Backtick (`)
- Add Support for HK Mizar MZ60?
- Any plans to update the Updating.txt?
- Can someone maintain AUR package? HOT 1
- This is a command-line tool for mapping keys, macros, and lighting for GK6X keyboards (GK64, GK84, GK61, etc). This can be used as an alternative to the official software (Windows / Mac).
- Light Effect settings grayed out in gui (SK61 RGB)
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 gk6x.