All modules target .NET 6.0, Windows 7.0+ (NotificationManager requires Windows 10.0.22000+).
Internal codename: Sequoia (namespaces use RazerSequoia.*).
Source path leaked in debug strings: D:\RazerDev\sequoia-client-v2\Src\Razer.SequoiaClient\
Purpose: Logger interface contract.
Namespace: RazerSequoia.ILogger
Interface: ISequoiaLogger
Info(msg, file, func, line)/Info(ex, msg, ...)Debug(msg, ...)/Debug(ex, msg, ...)Warn(msg, ...)/Warn(ex, msg, ...)Error(msg, ...)/Error(ex, msg, ...)Flush()GetDebugModel()-> bool (note: typo "Model" instead of "Mode")GetDiagnosticsMode()-> bool
All methods use [CallerFilePath], [CallerMemberName], [CallerLineNumber] for automatic source location capture.
Class: AppLogSetting
DebugMode(bool)DiagnosticsMode(bool)
Purpose: NLog-based logger implementation.
Namespace: RazerSequoia.Logger
Class: CortexLogger (implements ISequoiaLogger)
Constructor: CortexLogger(string logPath, string logDebugPath, bool debugMode, bool diagnosticsMode)
Log format:
${date:format=yyyy-MM-dd HH:mm:ss.ffff zzz}|${level}|T:${threadid}|L:${line}|${file}:${func}\n${message}
File targets:
- Main log: async file target, max 512 KB per file, 2 archive files (rolling)
- Debug log: async file target, max 20 MB per file, 1 archive file (rolling), only written when
debugMode=true - Both use
KeepFileOpen=true,ConcurrentWrites=false,OverflowAction=Block
In-memory cache:
IsMemCacheEnabledproperty - toggleable in-memory log bufferGetMemCache()/ClearMemCache()- thread-safe via lockOnLogActioncallback populates the mem cache with formatted log lines
Key methods:
FlushAndShutdown()- callsLogManager.Shutdown()- Debug-level messages are only logged when
_debugModeis true
Linux port notes: NLog is cross-platform. File paths need adaptation. No Win32 dependencies.
Purpose: Generic service locator interface.
Namespace: RazerSequoia.SequoiaIModuleFactory
Interface: IModuleFactory
TModule? GetInstance<TModule>()- resolve a module by type
Purpose: DI container wrapper using Microsoft.Extensions.DependencyInjection.
Namespace: RazerSequoia.SequoiaModuleFactory
Class: ModuleFactory (implements IModuleFactory)
Constructor: ModuleFactory(IServiceProvider serviceProvider)
GetInstance<TModule>()- calls_serviceProvider.GetService<TModule>()Dispose()- disposes theServiceProviderif_isInitis true
Linux port notes: Fully cross-platform. Standard MS DI.
Purpose: Environment monitoring interface - monitors, power, network, sessions.
Namespace: RazerSequoia.ISequoiaEnvironment (interface), RazerSequoia.IEnviroment.Models (models)
Interface: IEnvironment
Events:
OnMonitorInfosChanged->List<MonitorInfo>OnPcPowerInfoChanged->PCPowerInfoOnNetworkStateChanged->boolOnPcSessionEndChangedOnPcSuspendStateChanged->bool
Methods:
GetMonitorInfosAsync()->Task<List<MonitorInfo>>GetMonitorPowerInfo()->Task<PCPowerInfo>GetNetworkIsAvailable()->Task<bool>GetDeviceFingerPrint()->Task<string>GetMonitorsWorkAreaCache()->List<Rectangle>
Model: MonitorInfo
MonitorId,MonitorName(string)ResolutionX,ResolutionY(int)Rotate(EnumMonitorRotates)IsPrimaryMonitor(bool)
Enum: EnumMonitorRotates - Identity, Rotate90, Rotate180, Rotate270, ForceUint32
(JSON-serialized as string via JsonStringEnumConverter)
Model: PCPowerInfo - IsPowerSupply (bool)
Purpose: Windows environment monitoring implementation.
Namespace: RazerSequoia.SequoiaEnvironmentManager (main), RazerSequoia.EnvironmentManager (helpers), RazerSequoia.SequoiaEnvironmentManager.Interop (Win32)
Constructor: hooks into SystemEvents.DisplaySettingsChanged, SessionEnding, SessionSwitch, PowerModeChanged, and NetworkChange events.
Key methods:
GetMonitorInfosAsync()- usesScreen.AllScreens(WinForms), caches work areasGetMonitorPowerInfo()- checksSystemInformation.PowerStatus.BatteryChargeStatusGetNetworkIsAvailable()- callsInternetGetConnectedState(wininet.dll)GetDeviceFingerPrint()- generates base64 of"{MAC}_{VolumeSerial}_{OSID}"(cached)
Session handling:
SessionLock-> firesOnPcSuspendStateChanged(true)SessionUnlock-> firesOnPcSuspendStateChanged(false)
Registry keys:
HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid- read for OS ID
HMAC key: j6l-aUmhCc@tN%T_ - used in GetSpecialFileName() to HMAC-SHA256 the volume serial number
Key methods:
GetLogonUser()- WTS API to get active console session userGetOSID()- reads MachineGuid from registryGetVolumeSerialNumber()- C: drive volume serial viaGetVolumeInformationGetDefaultMacAddress()- usesRazer.HardwareDetector.SlimHardwareDetectorto find NIC with most trafficGetMemory()- total RAM viaSlimHardwareDetectorGetSpecialFileName()- HMAC-SHA256 of volume serial, used as unique device file name
Win32 imports:
user32.dll:GetSystemMetrics(screen dimensions)kernel32.dll:GetVolumeInformationKernel32.dll:WTSGetActiveConsoleSessionIdWtsapi32.dll:WTSQuerySessionInformation,WTSFreeMemorywininet.dll:InternetGetConnectedState
Full Win32 display configuration API bindings:
GetDisplayConfigBufferSizes,QueryDisplayConfig,DisplayConfigGetDeviceInfo- Structs:
DISPLAYCONFIG_PATH_INFO,DISPLAYCONFIG_MODE_INFO,DISPLAYCONFIG_TARGET_DEVICE_NAME, etc. - Enums:
QUERY_DEVICE_CONFIG_FLAGS,DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY,DISPLAYCONFIG_ROTATION,DISPLAYCONFIG_SCALING,DISPLAYCONFIG_PIXELFORMAT, etc.
Linux port notes: Heavy Windows dependency. Need replacements for:
Screen.AllScreens-> Wayland/X11 monitor enumerationInternetGetConnectedState-> NetworkManager/sysfs- WTS session APIs -> systemd-logind
- Volume serial / MachineGuid ->
/etc/machine-id SlimHardwareDetector->/sys/class/net/,/proc/meminfo
Purpose: Crash/error reporting via Razer Analytics service.
Namespace: RazerSequoia.CrashReporter
Constants:
ModuleAxon = "axon"ModuleNatasha = "natasha"(Razer Central Service)_hashKey = "j6l-aUmhCc@tN%T_"(same HMAC key as EnvironmentManager)
Default API: https://axon-api-staging.razer.com/v1
Registry keys:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D4E0AA57-2D20-4CEC-B397-4B8959298863}- if exists, sets header flag "Rise" and enables OAR (Open UI) events. This is likely Razer Cortex or another Razer product.
Key methods:
Init(apiDomain, appVersion, logDir, logger)- stores configSetUser(uuid)- createsRazerAnalyticsinstance, sets keepalive, checks Rise registrySendReportAsync(reportType, exception, module)- sends crash/error diagnostics- For "natasha" module: reads Razer Central Service log
- For "axon" module: reads
RazerAxon.log(100 lines) +RazerAxon.Player.log(200 lines) - Appends "Updater running" to title if
Razer Updaterprocess is active
SendOpenUIEventAsync()- sends OpenUI launch event (only if "Rise" detected)
Log file paths read during crash report:
{logDir}/RazerAxon.log(last 100 lines){logDir}/RazerAxon.Player.log(last 200 lines){CommonAppData}/Razer/Razer Central/Logs/Razer Central Service.log(last 100 lines, for natasha)
External dependency: Razer.Analytics library (RazerAnalytics, DiagnosticsInfo, DiagnosticsReportTypes, LaunchEventTypes)
Enum: ReportTypes - Error, Crash
Class: RazerAnalyticsLogger - adapter bridging ISequoiaLogger to IRazerAnalyticsLogger
Linux port notes: Can be stubbed out entirely or replaced with simpler crash reporting. Registry checks irrelevant.
Purpose: Notification manager interface.
Namespace: RazerAxon.INotification (interface), RazerAxon.INotification.Models (models)
Interface: INotificationManager
- Event:
OnNavigateRequested-> string (URL/path to navigate to) Init(checkIntervalSeconds, languageKey)
Model: NotificationSettings
ShownNotificationMaxId(int) - tracks highest shown notification IDIsShowNotification(bool, default true)
Purpose: Windows toast notification system for new wallpaper announcements and systray items.
Namespace: RazerAxon.NotificationManager
Target platform: Windows 10.0.22000+ (Windows 11)
Dependencies: ISequoiaLogger, ISettingManager, IUserManager, IDataAcquisition
Constructor behavior:
- Notification temp images stored in
%LocalAppData%\NotificationTemp - Loads language manager from
PathConstants.LanguagesDirwith system locale - Default check interval: 10800 seconds (3 hours), 30 seconds in debug mode
- Start delay: 180 seconds (3 minutes) before first notification display, 10 seconds in debug
Init flow:
- Gets wallpaper resource path for protected temp root
- Reads
NotificationSettingsfrom user settings - Hooks
ToastNotificationManagerCompat.OnActivated - Sets Axon toast notification display info in registry
- Starts periodic notification polling
- Fetches systray wallpaper items
API endpoints (relative to GetWebServiceDomain()):
{domain}/notification/newest- fetch new notifications (withlanguage_tag,filter_idsparams){domain}/wallpaper/central- fetch systray wallpapers (withlanguage_tag)
Registry keys:
HKCU\SOFTWARE\Classes\AppUserModelId\*- scans for entries with DisplayName "RazerAxon" or "Razer Axon", updates to "RAZER AXON" with icon path{AppDir}\Axon.icoand background colorFF339933(Razer green)
Notification data model: NewWallpaperNotificationInfo
Id,AppIconTitle,IconUrl,Title,DescriptionInlineImageUrl,HeroImageUrlNavigateTarget(URL)IfNavigateWithDefaultBrowser(bool)NotificationType,IconType("circle" or other)
Notification IDs: formatted as AxonNoti{NotificationType}{Id}
Toast actions:
- Click -> navigate to
NavigateTarget(in-app or default browser) - "VIEW DETAILS" button (localized via
common_view_detaillanguage key) - Tracks view/click/dismiss via
IDataAcquisition.SendEventwith dimensions: notification type, notification ID
Settings persistence: NotificationSettings read/written via ISettingManager.TryRead/TryWrite("NotificationSettings", userDir: true)
Default systray fallback: wallpaper named "Razer Axon" with id "-1" and cover PathConstants.DataDir/DefaultNotification.webp
Response parsing: Regex-based code extraction: ['"]code['"]\s*:\s*(?<code>-?\d+), expects code 200, then reads data property from JSON.
ISysNotificationItem- internal notification item interface with image prep, display state, and lifecycle callbacksSysNotificationItem<T>- generic implementation with delegate-based callbacks:CreateContent,OnPrepare,OnShown,OnShowFailed,OnActivated,OnDimissed
NotificationImgGenerator- downloads and caches notification images
Linux port notes: Requires complete replacement. Use libnotify/D-Bus notifications on Linux. The toast notification system (Microsoft.Toolkit.Uwp.Notifications, Windows.UI.Notifications) is Windows-only.
Purpose: Telemetry/analytics interface and event taxonomy.
Namespace: RazerSequoia.ISequoiaDataAcquisition (interface), RazerSequoia.ISequoiaDataAcquisition.Models (enums/models)
Interface: IDataAcquisition
SendEvent(category, action, label?, value?, dimensions?)- send telemetry eventInit(realInit)- initialize (real init sends environment/install events)GetIsNeedToToastRatingPage(ExpirationSeconds)-> boolSetIsToastRatingPage()- mark rating as shown
EventCategories: Environment, Marketplace, MyWallpaper, Playlist, Settings, Retention, Notification
EventDimensions: OsVersion, Monitor1-Monitor3, WallpaperType, WallpaperName, WallpaperResolution, WallPaperId, InstalledVersion, AutoLaunchApprove
EventRetentionActions: Install, Upgrade, Uninstall
EventEnvirenmentActions: Monitor, Software, DownloadFileCheck, SystemTray, Icon, Startup, SystemTrayCoverClick
EventMarketplaceActions: ViewWallpaper, ApplyWallpaper, RedeemWallpaper, DownloadWallpaper
EventMyWallpaperActions: AddWallpaper
EventPlaylistActions: StopPlaying, Mute, Chroma
EventSettingsActions: AutoLaunch, DuplicateMonitor, ScreenSaver, AutoLaunchRecord, SessionEnd, WallpaperPlay, WebLaunch
EventLabels: Enable, Resume, Disable
EventNotificationActions: NotificationClick, NotificationView, NotificationDimiss (typo)
Exception class: RazerDataException
Purpose: Telemetry implementation with local SQLite cache and Razer Kinesis (AWS Kinesis) backend.
Namespace: RazerSequoia.DataAcquisition (main), RazerSequoia.DataAcquisition.RazerData (Kinesis client), RazerSequoia.DataAcquisition.Cache (SQLite storage)
Dependencies: IUserManager, ISettingManager, IEnvironment, ISequoiaLogger
Init flow:
- Opens SQLite cache at
{DataSavedPath}/DataCollectionCache.db(user dir) - Creates
KinesisClientusing_settingManager.GetWebServiceDomain() - If
realInit:- Calls
_settingManager.TryRepairReg() - Sends install/upgrade event
- Sends auto-start setting event
- Sends environment event (monitor list, OS version)
- Calls
SendEvent():
- Creates
StorageDatawith GUID event ID, app version, device fingerprint, Unix timestamp - Stores in SQLite cache, then triggers async send via Kinesis
- If label is "LoadedPage", also calls
CrashReporterEntry.SendOpenUIEventAsync()
Registry keys:
HKCU\Software\Razer\RazerAxon:UUID(string) - written with user IDReportStatus(string) - "0" means install event not yet sentActionType(string) - "install" or "upgrade"
Install reporting: Launches RazerAxon.Reporter.exe with -install or -upgrade argument.
Rating page API:
- URL:
https://bespoke-analytics.razerapi.com/api/v1/1100/app-rating/recommendation - Headers:
Bearer {userToken},x-service-code: 1100,x-request-ts: {unix_ms} - Response: JWT, reads
enableboolean from payload - Service code
1100= Razer Axon
Dependencies: Razer.Kinesis library (IRazerBigDataClient, RazerBigDataClient, RazerBigDataApps.Axon)
- Creates
RazerBigDataClientwith app typeAxonand credential provider SendDataAsync()- sends event via_client.SendDataAsyncwith session ID, user ID, token, fingerprint, timestamp, category, action, label, value, dimensions
STS endpoint: {apiDomainPath}/sts
Credential flow:
- Sends GET request to
/stswithuuidandaccess_tokenparams - Response contains:
ip,arn,token.AccessKeyId,token.SecretAccessKey,token.SessionToken,token.Expiration - Returns
KinesisCredential(AWS STS temporary credentials)
Database: DataCollectionCache.db
Table: RazerEntry (extends StorageEntry)
- Schema:
Id(PK, auto-increment),CreateTime(DateTime),Payload(JSON string ofStorageData)
StorageData model:
EventId,AppVersion,DeviceFingerprint,UnixTimestamp,Category,Action,Label,Value,Dimensions
Cache limits:
- Database max: 1500 entries, shrinks by deleting oldest 500
- In-memory max: 150 entries, shrinks by removing oldest 50
Queue system: BlockingCollection<Task> with dedicated flush task for sequential DB operations.
Linux port notes:
- SQLite (
sqlite-net-pcl) is cross-platform Razer.Kinesis(AWS Kinesis wrapper) is a proprietary Razer library - would need replacement or stub- Registry reads need replacement
RazerAxon.Reporter.exeis Windows-onlybespoke-analytics.razerapi.comAPI is accessible cross-platform
j6l-aUmhCc@tN%T_ - used in both PCHelper.GetSpecialFileName() and CrashReporterEntry for Razer Analytics initialization.
- Staging:
https://axon-api-staging.razer.com/v1 - Analytics:
https://bespoke-analytics.razerapi.com - Dynamic:
_settingManager.GetWebServiceDomain()for most API calls
/sts- AWS STS credential exchange/notification/newest- notification polling/wallpaper/central- systray wallpapers
Razer.Analytics- crash/error reportingRazer.Kinesis- AWS Kinesis telemetryRazer.HardwareDetector- hardware info (MAC, RAM)Razer.Language- i18n (LanguageManager)RazerAxon.CommonUtility/RazerSequoia.CommonUtility- shared utilities
Base64("{DefaultMACAddress}_{VolumeSerialNumber}_{MachineGuid}")
{logDir}/RazerAxon.log,{logDir}/RazerAxon.Player.log{CommonAppData}/Razer/Razer Central/Logs/Razer Central Service.log%LocalAppData%/NotificationTemp/{AppDir}/Axon.icoPathConstants.DataDir/DefaultNotification.webpPathConstants.LanguagesDir/(language files){userDataDir}/DataCollectionCache.db
HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuidHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D4E0AA57-2D20-4CEC-B397-4B8959298863}HKCU\Software\Razer\RazerAxon(UUID, ReportStatus, ActionType)HKCU\SOFTWARE\Classes\AppUserModelId\*(toast notification identity)