I have a device (convertible) that only supports S2idle and it works just fine with Ubuntu 23.04 if I configure properly its webcam, so I'd say it's more a problem of if all hardware is supported than if the kernel supports it.
You may want to check if your device has any problems going to this website and searching for your actual model: